diff options
Diffstat (limited to 'src/lib/libcrypto/crypto_init.c')
-rw-r--r-- | src/lib/libcrypto/crypto_init.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/crypto_init.c b/src/lib/libcrypto/crypto_init.c index 3745e2e718..67e7920890 100644 --- a/src/lib/libcrypto/crypto_init.c +++ b/src/lib/libcrypto/crypto_init.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <openssl/conf.h> | 23 | #include <openssl/conf.h> |
24 | #include <openssl/evp.h> | 24 | #include <openssl/evp.h> |
25 | #include <openssl/err.h> | 25 | #include <openssl/err.h> |
26 | |||
26 | #include "cryptlib.h" | 27 | #include "cryptlib.h" |
27 | 28 | ||
28 | int OpenSSL_config(const char *); | 29 | int OpenSSL_config(const char *); |
@@ -30,17 +31,15 @@ int OpenSSL_no_config(void); | |||
30 | 31 | ||
31 | static pthread_t crypto_init_thread; | 32 | static pthread_t crypto_init_thread; |
32 | 33 | ||
33 | void crypto_init_locks(void); | ||
34 | |||
35 | static void | 34 | static void |
36 | OPENSSL_init_crypto_internal(void) | 35 | OPENSSL_init_crypto_internal(void) |
37 | { | 36 | { |
38 | crypto_init_thread = pthread_self(); | 37 | crypto_init_thread = pthread_self(); |
38 | |||
39 | OPENSSL_cpuid_setup(); | 39 | OPENSSL_cpuid_setup(); |
40 | ERR_load_crypto_strings(); | 40 | ERR_load_crypto_strings(); |
41 | OpenSSL_add_all_ciphers(); | 41 | OpenSSL_add_all_ciphers(); |
42 | OpenSSL_add_all_digests(); | 42 | OpenSSL_add_all_digests(); |
43 | crypto_init_locks(); | ||
44 | } | 43 | } |
45 | 44 | ||
46 | int | 45 | int |