diff options
author | Richard Levitte <levitte@openssl.org> | 2002-10-02 00:19:33 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-10-02 00:19:33 +0000 |
commit | 293d5082c75b72ae56cfac02deb5dd6357130c2d (patch) | |
tree | 3b97597a0e51dcd037edccae964fa10201590585 /crypto/engine/eng_all.c | |
parent | 929f11673384d9f518b47bd4dc7f1878e80cdf28 (diff) |
The OpenBSD project has replaced the first implementation of the /dev/crypto
engine with something they claim is better. I have nothing to compare to,
and I assume they know what they're talking about. The interesting part with
this one is that it's loaded by default on OpenBSD systems.
This change was originally introduced in OpenBSD's tracking of OpenSSL.
Diffstat (limited to 'crypto/engine/eng_all.c')
-rw-r--r-- | crypto/engine/eng_all.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/crypto/engine/eng_all.c b/crypto/engine/eng_all.c index b3030fe505..e4d48dae85 100644 --- a/crypto/engine/eng_all.c +++ b/crypto/engine/eng_all.c @@ -95,8 +95,19 @@ void ENGINE_load_builtin_engines(void) #ifndef OPENSSL_NO_HW_4758_CCA ENGINE_load_4758cca(); #endif -#ifdef OPENSSL_OPENBSD_DEV_CRYPTO - ENGINE_load_openbsd_dev_crypto(); +#ifdef __OpenBSD__ + ENGINE_load_cryptodev(); #endif #endif } + +#ifdef __OpenBSD__ +void ENGINE_setup_openbsd(void) { + static int openbsd_default_loaded = 0; + if (!openbsd_default_loaded) { + ENGINE_load_cryptodev(); + ENGINE_register_all_complete(); + } + openbsd_default_loaded=1; +} +#endif |