diff options
Diffstat (limited to 'src/lib/libcrypto/engine/eng_all.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_all.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/lib/libcrypto/engine/eng_all.c b/src/lib/libcrypto/engine/eng_all.c index b3030fe505..0f6992a40d 100644 --- a/src/lib/libcrypto/engine/eng_all.c +++ b/src/lib/libcrypto/engine/eng_all.c | |||
@@ -95,8 +95,19 @@ void ENGINE_load_builtin_engines(void) | |||
95 | #ifndef OPENSSL_NO_HW_4758_CCA | 95 | #ifndef OPENSSL_NO_HW_4758_CCA |
96 | ENGINE_load_4758cca(); | 96 | ENGINE_load_4758cca(); |
97 | #endif | 97 | #endif |
98 | #ifdef OPENSSL_OPENBSD_DEV_CRYPTO | 98 | #if defined(__OpenBSD__) || defined(__FreeBSD__) |
99 | ENGINE_load_openbsd_dev_crypto(); | 99 | ENGINE_load_cryptodev(); |
100 | #endif | 100 | #endif |
101 | #endif | 101 | #endif |
102 | } | 102 | } |
103 | |||
104 | #if defined(__OpenBSD__) || defined(__FreeBSD__) | ||
105 | void ENGINE_setup_bsd_cryptodev(void) { | ||
106 | static int bsd_cryptodev_default_loaded = 0; | ||
107 | if (!bsd_cryptodev_default_loaded) { | ||
108 | ENGINE_load_cryptodev(); | ||
109 | ENGINE_register_all_complete(); | ||
110 | } | ||
111 | bsd_cryptodev_default_loaded=1; | ||
112 | } | ||
113 | #endif | ||