Disbling AES-NI on FreeBSD as the feature checke does not work well
and it enables it by mistake on IntelB. Coreb" i3-3240 Processor
This commit is contained in:
+6
@@ -69,6 +69,11 @@ int mbedtls_aesni_has_support( unsigned int what )
|
|||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
|
||||||
|
/* In FreeBSD we don't have a reliable way to check AES-NI so better disable it */
|
||||||
|
return(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(linux) || defined(__linux__)
|
#if defined(linux) || defined(__linux__)
|
||||||
if(has_aesni_checked == 0) {
|
if(has_aesni_checked == 0) {
|
||||||
/*
|
/*
|
||||||
@@ -114,6 +119,7 @@ int mbedtls_aesni_has_support( unsigned int what )
|
|||||||
|
|
||||||
return ( (ecx & what) != 0 );
|
return ( (ecx & what) != 0 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(WIN32) || defined(WIN64)
|
#elif defined(WIN32) || defined(WIN64)
|
||||||
int cpuInfo[4];
|
int cpuInfo[4];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user