From 9f3c2d2afb228715c20193c6a3d1dcf4076161e2 Mon Sep 17 00:00:00 2001 From: miod <> Date: Thu, 17 Apr 2014 18:49:35 +0000 Subject: Remove oh-so-important-from-a-security-pov OpenSSL_rtdsc() function. --- src/lib/libcrypto/x86cpuid.pl | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/lib/libcrypto/x86cpuid.pl') diff --git a/src/lib/libcrypto/x86cpuid.pl b/src/lib/libcrypto/x86cpuid.pl index 0da613f697..c7a57a3465 100644 --- a/src/lib/libcrypto/x86cpuid.pl +++ b/src/lib/libcrypto/x86cpuid.pl @@ -143,17 +143,6 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } &external_label("OPENSSL_ia32cap_P"); -&function_begin_B("OPENSSL_rdtsc","EXTRN\t_OPENSSL_ia32cap_P:DWORD"); - &xor ("eax","eax"); - &xor ("edx","edx"); - &picmeup("ecx","OPENSSL_ia32cap_P"); - &bt (&DWP(0,"ecx"),4); - &jnc (&label("notsc")); - &rdtsc (); -&set_label("notsc"); - &ret (); -&function_end_B("OPENSSL_rdtsc"); - # This works in Ring 0 only [read DJGPP+MS-DOS+privileged DPMI host], # but it's safe to call it on any [supported] 32-bit platform... # Just check for [non-]zero return value... -- cgit v1.2.3-55-g6feb