summaryrefslogtreecommitdiff
path: root/lib/libcrypto/armcap.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-04-17 18:49:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-04-17 18:49:36 +0000
commit47576640cffdd8a0db31cfa88edd1ef1c9522aa0 (patch)
treea3423f5399a94d38dfaee3527f1166104ec0d770 /lib/libcrypto/armcap.c
parent64a5e384cae430b0456f17ec27a84f6233f894d2 (diff)
Remove oh-so-important-from-a-security-pov OpenSSL_rtdsc() function.
Diffstat (limited to 'lib/libcrypto/armcap.c')
-rw-r--r--lib/libcrypto/armcap.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/libcrypto/armcap.c b/lib/libcrypto/armcap.c
index 0625587bdd0..f40993c1d55 100644
--- a/lib/libcrypto/armcap.c
+++ b/lib/libcrypto/armcap.c
@@ -20,16 +20,6 @@ static sigjmp_buf ill_jmp;
* ARM compilers support inline assembler...
*/
void _armv7_neon_probe(void);
-unsigned int _armv7_tick(void);
-
-unsigned int
-OPENSSL_rdtsc(void)
-{
- if (OPENSSL_armcap_P & ARMV7_TICK)
- return _armv7_tick();
- else
- return 0;
-}
#if defined(__GNUC__) && __GNUC__>=2
void OPENSSL_cpuid_setup(void) __attribute__((constructor));
@@ -72,10 +62,6 @@ OPENSSL_cpuid_setup(void)
_armv7_neon_probe();
OPENSSL_armcap_P |= ARMV7_NEON;
}
- if (sigsetjmp(ill_jmp, 1) == 0) {
- _armv7_tick();
- OPENSSL_armcap_P |= ARMV7_TICK;
- }
sigaction (SIGILL, &ill_oact, NULL);
sigprocmask(SIG_SETMASK, &oset, NULL);