Out of all the openssl apps, just one of them has code to mess around with
authorjsing <jsing@openbsd.org>
Sun, 18 May 2014 16:43:18 +0000 (16:43 +0000)
committerjsing <jsing@openbsd.org>
Sun, 18 May 2014 16:43:18 +0000 (16:43 +0000)
electric fence externs. Nuke from orbit.

ok miod@

lib/libssl/src/apps/ca.c

index 59f1969..10b5c0b 100644 (file)
@@ -169,12 +169,6 @@ static const char *ca_usage[] = {
        NULL
 };
 
-#ifdef EFENCE
-extern int EF_PROTECT_FREE;
-extern int EF_PROTECT_BELOW;
-extern int EF_ALIGNMENT;
-#endif
-
 static void lookup_fail(const char *name, const char *tag);
 static int certify(X509 ** xret, char *infile, EVP_PKEY * pkey, X509 * x509,
     const EVP_MD * dgst, STACK_OF(OPENSSL_STRING) * sigopts,
@@ -305,12 +299,6 @@ ca_main(int argc, char **argv)
        char *tofree = NULL;
        DB_ATTR db_attr;
 
-#ifdef EFENCE
-       EF_PROTECT_FREE = 1;
-       EF_PROTECT_BELOW = 1;
-       EF_ALIGNMENT = 0;
-#endif
-
        signal(SIGPIPE, SIG_IGN);
 
        conf = NULL;