diff options
author | deraadt <> | 2014-06-20 21:00:46 +0000 |
---|---|---|
committer | deraadt <> | 2014-06-20 21:00:46 +0000 |
commit | fd246cd3bca6f8a162fc23c4fb7d3a825de618b8 (patch) | |
tree | 41b3deca5d67323bed9044e403bbe1c6418748bf /src/lib/libcrypto/armcap.c | |
parent | 7ad0caae1a0b3317154a69d8faea6b9be64f37f5 (diff) | |
download | openbsd-fd246cd3bca6f8a162fc23c4fb7d3a825de618b8.tar.gz openbsd-fd246cd3bca6f8a162fc23c4fb7d3a825de618b8.tar.bz2 openbsd-fd246cd3bca6f8a162fc23c4fb7d3a825de618b8.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.c | 9 |
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 |