summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine/eng_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/engine/eng_all.c')
-rw-r--r--src/lib/libcrypto/engine/eng_all.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lib/libcrypto/engine/eng_all.c b/src/lib/libcrypto/engine/eng_all.c
index 69e54f461e..79d1f2beff 100644
--- a/src/lib/libcrypto/engine/eng_all.c
+++ b/src/lib/libcrypto/engine/eng_all.c
@@ -61,15 +61,15 @@
61 61
62void ENGINE_load_builtin_engines(void) 62void ENGINE_load_builtin_engines(void)
63 { 63 {
64#if 0
64 /* There's no longer any need for an "openssl" ENGINE unless, one day, 65 /* There's no longer any need for an "openssl" ENGINE unless, one day,
65 * it is the *only* way for standard builtin implementations to be be 66 * it is the *only* way for standard builtin implementations to be be
66 * accessed (ie. it would be possible to statically link binaries with 67 * accessed (ie. it would be possible to statically link binaries with
67 * *no* builtin implementations). */ 68 * *no* builtin implementations). */
68#if 0
69 ENGINE_load_openssl(); 69 ENGINE_load_openssl();
70#endif 70#endif
71#if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_PADLOCK) 71#if !defined(OPENSSL_NO_HW) && (defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV))
72 ENGINE_load_padlock(); 72 ENGINE_load_cryptodev();
73#endif 73#endif
74 74
75#if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_AESNI) 75#if !defined(OPENSSL_NO_HW) && !defined(OPENSSL_NO_HW_AESNI)
@@ -103,14 +103,15 @@ void ENGINE_load_builtin_engines(void)
103#ifndef OPENSSL_NO_HW_UBSEC 103#ifndef OPENSSL_NO_HW_UBSEC
104 ENGINE_load_ubsec(); 104 ENGINE_load_ubsec();
105#endif 105#endif
106#ifndef OPENSSL_NO_HW_PADLOCK
107 ENGINE_load_padlock();
106#endif 108#endif
107#if !defined(OPENSSL_NO_GMP) && !defined(OPENSSL_NO_HW_GMP)
108 ENGINE_load_gmp();
109#endif 109#endif
110#ifndef OPENSSL_NO_GOST
111 ENGINE_load_gost();
110#endif 112#endif
111#ifndef OPENSSL_NO_HW 113#ifndef OPENSSL_NO_GMP
112#if defined(__OpenBSD__) || defined(__FreeBSD__) 114 ENGINE_load_gmp();
113 ENGINE_load_cryptodev();
114#endif 115#endif
115#if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG) 116#if defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_NO_CAPIENG)
116 ENGINE_load_capi(); 117 ENGINE_load_capi();
@@ -118,7 +119,7 @@ void ENGINE_load_builtin_engines(void)
118#endif 119#endif
119 } 120 }
120 121
121#if defined(__OpenBSD__) || defined(__FreeBSD__) 122#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
122void ENGINE_setup_bsd_cryptodev(void) { 123void ENGINE_setup_bsd_cryptodev(void) {
123 static int bsd_cryptodev_default_loaded = 0; 124 static int bsd_cryptodev_default_loaded = 0;
124 if (!bsd_cryptodev_default_loaded) { 125 if (!bsd_cryptodev_default_loaded) {