diff options
| author | jsing <> | 2014-05-16 14:24:36 +0000 |
|---|---|---|
| committer | jsing <> | 2014-05-16 14:24:36 +0000 |
| commit | cc06c934c6d19139a199657cf73964bae959ff88 (patch) | |
| tree | 4381a37501b47b394536ba12ad22e8d0b233b62a /src/lib/libcrypto/evp/c_all.c | |
| parent | e4b9151b70065f78efd09afb46ade88c1ff19f90 (diff) | |
| download | openbsd-cc06c934c6d19139a199657cf73964bae959ff88.tar.gz openbsd-cc06c934c6d19139a199657cf73964bae959ff88.tar.bz2 openbsd-cc06c934c6d19139a199657cf73964bae959ff88.zip | |
When OPENSSL_LOAD_CONF was added it ended up with more #if 0 code,
more #ifdefs and a new source file that contains a single function.
Nuke the #if 0 code that is now a macro and move the single function in
evp_acnf.c to c_all.c, which is where the other code lives. While here,
tidy evp.h slightly, remove an unnecessary #ifdef __OpenBSD__ and nuke
a comment that is now a lie.
ok miod@
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 | } | ||
