Invoke OPENSSL_add_all_algorithms_noconf() to enforce OPENSSL_cpuid_setup()
authormiod <miod@openbsd.org>
Thu, 17 Apr 2014 17:49:36 +0000 (17:49 +0000)
committermiod <miod@openbsd.org>
Thu, 17 Apr 2014 17:49:36 +0000 (17:49 +0000)
has been called, for, depending how libcrypto, it might be a hidden symbol.
Reported by jsg@

regress/lib/libcrypto/rc4/rc4test.c

index 84cb167..a0b08a6 100644 (file)
@@ -111,11 +111,7 @@ int main(int argc, char *argv[])
        RC4_KEY key;
        unsigned char obuf[512];
 
-#if !defined(OPENSSL_PIC)
-       void OPENSSL_cpuid_setup(void);
-
-       OPENSSL_cpuid_setup();
-#endif
+       OPENSSL_add_all_algorithms_noconf();
 
        for (i=0; i<6; i++)
                {