diff options
author | markus <> | 2003-05-11 21:36:58 +0000 |
---|---|---|
committer | markus <> | 2003-05-11 21:36:58 +0000 |
commit | 1c98a87f0daac81245653c227eb2f2508a22a965 (patch) | |
tree | 3de6d603296ec563b936da4e6a8a1e33d48f8884 /src/lib/libcrypto/engine/eng_all.c | |
parent | 31392c89d1135cf2a416f97295f6d21681b3fbc4 (diff) | |
download | openbsd-1c98a87f0daac81245653c227eb2f2508a22a965.tar.gz openbsd-1c98a87f0daac81245653c227eb2f2508a22a965.tar.bz2 openbsd-1c98a87f0daac81245653c227eb2f2508a22a965.zip |
import 0.9.7b (without idea and rc5)
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 | ||