From: miod Date: Thu, 17 Apr 2014 17:49:36 +0000 (+0000) Subject: Invoke OPENSSL_add_all_algorithms_noconf() to enforce OPENSSL_cpuid_setup() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=17b9e7f5e3dfba53f0361a4a5118aeb035d68ff4;p=openbsd Invoke OPENSSL_add_all_algorithms_noconf() to enforce OPENSSL_cpuid_setup() has been called, for, depending how libcrypto, it might be a hidden symbol. Reported by jsg@ --- diff --git a/regress/lib/libcrypto/rc4/rc4test.c b/regress/lib/libcrypto/rc4/rc4test.c index 84cb167b36a..a0b08a63c33 100644 --- a/regress/lib/libcrypto/rc4/rc4test.c +++ b/regress/lib/libcrypto/rc4/rc4test.c @@ -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++) {