diff options
Diffstat (limited to 'src/lib/libcrypto/evp/c_all.c')
-rw-r--r-- | src/lib/libcrypto/evp/c_all.c | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/src/lib/libcrypto/evp/c_all.c b/src/lib/libcrypto/evp/c_all.c index 0596484742..251a8797df 100644 --- a/src/lib/libcrypto/evp/c_all.c +++ b/src/lib/libcrypto/evp/c_all.c | |||
@@ -57,36 +57,30 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "cryptlib.h" | 60 | |
61 | #include <openssl/conf.h> | ||
61 | #include <openssl/evp.h> | 62 | #include <openssl/evp.h> |
63 | |||
62 | #ifndef OPENSSL_NO_ENGINE | 64 | #ifndef OPENSSL_NO_ENGINE |
63 | #include <openssl/engine.h> | 65 | #include <openssl/engine.h> |
64 | #endif | 66 | #endif |
65 | 67 | ||
66 | #if 0 | 68 | #include "cryptlib.h" |
67 | #undef OpenSSL_add_all_algorithms | ||
68 | |||
69 | void | ||
70 | OpenSSL_add_all_algorithms(void) | ||
71 | { | ||
72 | OPENSSL_add_all_algorithms_noconf(); | ||
73 | } | ||
74 | #endif | ||
75 | 69 | ||
76 | void | 70 | void |
77 | OPENSSL_add_all_algorithms_noconf(void) | 71 | OPENSSL_add_all_algorithms_noconf(void) |
78 | { | 72 | { |
79 | /* | ||
80 | * For the moment OPENSSL_cpuid_setup does something | ||
81 | * only on IA-32, but we reserve the option for all | ||
82 | * platforms... | ||
83 | */ | ||
84 | OPENSSL_cpuid_setup(); | 73 | OPENSSL_cpuid_setup(); |
85 | OpenSSL_add_all_ciphers(); | 74 | OpenSSL_add_all_ciphers(); |
86 | OpenSSL_add_all_digests(); | 75 | OpenSSL_add_all_digests(); |
87 | #ifndef OPENSSL_NO_ENGINE | 76 | #ifndef OPENSSL_NO_ENGINE |
88 | # if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) | ||
89 | ENGINE_setup_bsd_cryptodev(); | 77 | ENGINE_setup_bsd_cryptodev(); |
90 | # endif | ||
91 | #endif | 78 | #endif |
92 | } | 79 | } |
80 | |||
81 | void | ||
82 | OPENSSL_add_all_algorithms_conf(void) | ||
83 | { | ||
84 | OPENSSL_add_all_algorithms_noconf(); | ||
85 | OPENSSL_config(NULL); | ||
86 | } | ||