aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/third_party/src/gcrypt/aesni.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/third_party/src/gcrypt/aesni.c b/src/lib/third_party/src/gcrypt/aesni.c
index fb5dbe798..b5d164662 100644
--- a/src/lib/third_party/src/gcrypt/aesni.c
+++ b/src/lib/third_party/src/gcrypt/aesni.c
@@ -94,17 +94,19 @@ int mbedtls_aesni_has_support( unsigned int what )
fclose(fd);
has_aesni_checked = 1;
- return(has_aesni_checked);
}
- } else
- return(cached_has_aesni);
+ }
+
+ return(cached_has_aesni);
+#if 0
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) == 0)
{
return 0;
}
return ( (ecx & what) != 0 );
+#endif
#elif defined(WIN32) || defined(WIN64)
int cpuInfo[4];