From fd246cd3bca6f8a162fc23c4fb7d3a825de618b8 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 20 Jun 2014 21:00:46 +0000 Subject: 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 --- src/lib/libcrypto/sparcv9cap.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/lib/libcrypto/sparcv9cap.c') diff --git a/src/lib/libcrypto/sparcv9cap.c b/src/lib/libcrypto/sparcv9cap.c index 7b1b7ed0a6..cc39c1bf45 100644 --- a/src/lib/libcrypto/sparcv9cap.c +++ b/src/lib/libcrypto/sparcv9cap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sparcv9cap.c,v 1.6 2014/06/12 15:49:27 deraadt Exp $ */ +/* $OpenBSD: sparcv9cap.c,v 1.7 2014/06/20 21:00:46 deraadt Exp $ */ #include #include #include @@ -53,11 +53,6 @@ OPENSSL_cpuid_setup(void) return; trigger = 1; - if ((e = getenv("OPENSSL_sparcv9cap"))) { - OPENSSL_sparcv9cap_P = strtoul(e, NULL, 0); - return; - } - /* Initial value, fits UltraSPARC-I&II... */ OPENSSL_sparcv9cap_P = SPARCV9_PREFER_FPU; -- cgit v1.2.3-55-g6feb