diff options
author | miod <> | 2014-04-17 18:49:35 +0000 |
---|---|---|
committer | miod <> | 2014-04-17 18:49:35 +0000 |
commit | 9f3c2d2afb228715c20193c6a3d1dcf4076161e2 (patch) | |
tree | 9b300ff5f2f5884420887d8f593434c1547a5934 /src/lib/libcrypto/x86cpuid.pl | |
parent | 87dc5ba7fdbe9aad46f68ad25457c433066ca01b (diff) | |
download | openbsd-9f3c2d2afb228715c20193c6a3d1dcf4076161e2.tar.gz openbsd-9f3c2d2afb228715c20193c6a3d1dcf4076161e2.tar.bz2 openbsd-9f3c2d2afb228715c20193c6a3d1dcf4076161e2.zip |
Remove oh-so-important-from-a-security-pov OpenSSL_rtdsc() function.
Diffstat (limited to 'src/lib/libcrypto/x86cpuid.pl')
-rw-r--r-- | src/lib/libcrypto/x86cpuid.pl | 11 |
1 files changed, 0 insertions, 11 deletions
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/); } | |||
143 | 143 | ||
144 | &external_label("OPENSSL_ia32cap_P"); | 144 | &external_label("OPENSSL_ia32cap_P"); |
145 | 145 | ||
146 | &function_begin_B("OPENSSL_rdtsc","EXTRN\t_OPENSSL_ia32cap_P:DWORD"); | ||
147 | &xor ("eax","eax"); | ||
148 | &xor ("edx","edx"); | ||
149 | &picmeup("ecx","OPENSSL_ia32cap_P"); | ||
150 | &bt (&DWP(0,"ecx"),4); | ||
151 | &jnc (&label("notsc")); | ||
152 | &rdtsc (); | ||
153 | &set_label("notsc"); | ||
154 | &ret (); | ||
155 | &function_end_B("OPENSSL_rdtsc"); | ||
156 | |||
157 | # This works in Ring 0 only [read DJGPP+MS-DOS+privileged DPMI host], | 146 | # This works in Ring 0 only [read DJGPP+MS-DOS+privileged DPMI host], |
158 | # but it's safe to call it on any [supported] 32-bit platform... | 147 | # but it's safe to call it on any [supported] 32-bit platform... |
159 | # Just check for [non-]zero return value... | 148 | # Just check for [non-]zero return value... |