summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/armcap.c
diff options
context:
space:
mode:
authorderaadt <>2014-06-20 21:00:46 +0000
committerderaadt <>2014-06-20 21:00:46 +0000
commit54a16e60e2d46d32bde1eb6e8f8f17d15936e507 (patch)
tree41b3deca5d67323bed9044e403bbe1c6418748bf /src/lib/libcrypto/armcap.c
parent54450110ee6231bce58f01d0829bc19c2c8f9592 (diff)
downloadopenbsd-54a16e60e2d46d32bde1eb6e8f8f17d15936e507.tar.gz
openbsd-54a16e60e2d46d32bde1eb6e8f8f17d15936e507.tar.bz2
openbsd-54a16e60e2d46d32bde1eb6e8f8f17d15936e507.zip
Remove the OPENSSL_*cap getenv's. A program should not be able to
change the behaviour of the library in such a complicated fashion. ok miod
Diffstat (limited to 'src/lib/libcrypto/armcap.c')
-rw-r--r--src/lib/libcrypto/armcap.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/libcrypto/armcap.c b/src/lib/libcrypto/armcap.c
index 330fea25a7..7ee94d48b1 100644
--- a/src/lib/libcrypto/armcap.c
+++ b/src/lib/libcrypto/armcap.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: armcap.c,v 1.5 2014/06/12 15:49:27 deraadt Exp $ */ 1/* $OpenBSD: armcap.c,v 1.6 2014/06/20 21:00:46 deraadt Exp $ */
2#include <stdio.h> 2#include <stdio.h>
3#include <stdlib.h> 3#include <stdlib.h>
4#include <string.h> 4#include <string.h>
@@ -44,13 +44,6 @@ OPENSSL_cpuid_setup(void)
44 return; 44 return;
45 trigger = 1; 45 trigger = 1;
46 46
47#ifndef __OpenBSD__
48 if ((e = getenv("OPENSSL_armcap"))) {
49 OPENSSL_armcap_P = strtoul(e, NULL, 0);
50 return;
51 }
52#endif
53
54 OPENSSL_armcap_P = 0; 47 OPENSSL_armcap_P = 0;
55 48
56#if __ARM_ARCH__ >= 7 49#if __ARM_ARCH__ >= 7