diff options
| author | miod <> | 2014-04-17 18:49:35 +0000 |
|---|---|---|
| committer | miod <> | 2014-04-17 18:49:35 +0000 |
| commit | b4ee6facff27de9af90bfa187f0b058454154db5 (patch) | |
| tree | 9b300ff5f2f5884420887d8f593434c1547a5934 /src/lib/libcrypto/x86cpuid.pl | |
| parent | 3edb7884406560f3fbb30f0461205d9ee1a9af40 (diff) | |
| download | openbsd-b4ee6facff27de9af90bfa187f0b058454154db5.tar.gz openbsd-b4ee6facff27de9af90bfa187f0b058454154db5.tar.bz2 openbsd-b4ee6facff27de9af90bfa187f0b058454154db5.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... |
