summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/c_all.c
diff options
context:
space:
mode:
authorjsing <>2014-05-16 14:24:36 +0000
committerjsing <>2014-05-16 14:24:36 +0000
commitd6d4e206cd692584735252f0a21af1b42608bc28 (patch)
tree4381a37501b47b394536ba12ad22e8d0b233b62a /src/lib/libcrypto/evp/c_all.c
parent1eeef6fd82d0dec3015800123cb212520761c54d (diff)
downloadopenbsd-d6d4e206cd692584735252f0a21af1b42608bc28.tar.gz
openbsd-d6d4e206cd692584735252f0a21af1b42608bc28.tar.bz2
openbsd-d6d4e206cd692584735252f0a21af1b42608bc28.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.c28
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
69void
70OpenSSL_add_all_algorithms(void)
71{
72 OPENSSL_add_all_algorithms_noconf();
73}
74#endif
75 69
76void 70void
77OPENSSL_add_all_algorithms_noconf(void) 71OPENSSL_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
81void
82OPENSSL_add_all_algorithms_conf(void)
83{
84 OPENSSL_add_all_algorithms_noconf();
85 OPENSSL_config(NULL);
86}