diff options
Diffstat (limited to 'src/lib/libcrypto/engine/eng_all.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_all.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/libcrypto/engine/eng_all.c b/src/lib/libcrypto/engine/eng_all.c index fd36594a0b..eb933153e1 100644 --- a/src/lib/libcrypto/engine/eng_all.c +++ b/src/lib/libcrypto/engine/eng_all.c | |||
@@ -10,7 +10,7 @@ | |||
10 | * are met: | 10 | * are met: |
11 | * | 11 | * |
12 | * 1. Redistributions of source code must retain the above copyright | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * | 14 | * |
15 | * 2. Redistributions in binary form must reproduce the above copyright | 15 | * 2. Redistributions in binary form must reproduce the above copyright |
16 | * notice, this list of conditions and the following disclaimer in | 16 | * notice, this list of conditions and the following disclaimer in |
@@ -59,8 +59,9 @@ | |||
59 | #include "cryptlib.h" | 59 | #include "cryptlib.h" |
60 | #include "eng_int.h" | 60 | #include "eng_int.h" |
61 | 61 | ||
62 | void ENGINE_load_builtin_engines(void) | 62 | void |
63 | { | 63 | ENGINE_load_builtin_engines(void) |
64 | { | ||
64 | /* Some ENGINEs need this */ | 65 | /* Some ENGINEs need this */ |
65 | OPENSSL_cpuid_setup(); | 66 | OPENSSL_cpuid_setup(); |
66 | #if 0 | 67 | #if 0 |
@@ -85,15 +86,18 @@ void ENGINE_load_builtin_engines(void) | |||
85 | #endif | 86 | #endif |
86 | #endif | 87 | #endif |
87 | ENGINE_register_all_complete(); | 88 | ENGINE_register_all_complete(); |
88 | } | 89 | } |
89 | 90 | ||
90 | #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) | 91 | #if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV) |
91 | void ENGINE_setup_bsd_cryptodev(void) { | 92 | void |
93 | ENGINE_setup_bsd_cryptodev(void) | ||
94 | { | ||
92 | static int bsd_cryptodev_default_loaded = 0; | 95 | static int bsd_cryptodev_default_loaded = 0; |
96 | |||
93 | if (!bsd_cryptodev_default_loaded) { | 97 | if (!bsd_cryptodev_default_loaded) { |
94 | ENGINE_load_cryptodev(); | 98 | ENGINE_load_cryptodev(); |
95 | ENGINE_register_all_complete(); | 99 | ENGINE_register_all_complete(); |
96 | } | 100 | } |
97 | bsd_cryptodev_default_loaded=1; | 101 | bsd_cryptodev_default_loaded = 1; |
98 | } | 102 | } |
99 | #endif | 103 | #endif |