X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fengine%2Fhw_openbsd_dev_crypto.c;h=101df96fcdeee8eb711720146bb21eae6246889f;hp=6c8fdb6956eb13341bcf7405e652226fca8a5e4e;hb=db744f8950be3d63feb8393a34d1fc96db9c11e8;hpb=3132ab8ce690bc6c10e58006d1afce3a5acf0549 diff --git a/crypto/engine/hw_openbsd_dev_crypto.c b/crypto/engine/hw_openbsd_dev_crypto.c index 6c8fdb6956..101df96fcd 100644 --- a/crypto/engine/hw_openbsd_dev_crypto.c +++ b/crypto/engine/hw_openbsd_dev_crypto.c @@ -53,31 +53,35 @@ * */ +#ifdef OPENSSL_OPENBSD_DEV_CRYPTO + #include #include -#include "engine_int.h" - -#ifdef OPENSSL_OPENBSD_DEV_CRYPTO +#include "eng_int.h" static void load_ciphers(ENGINE *e) - { - ENGINE_add_cipher(e,EVP_dev_crypto_des_ede3_cbc()); - ENGINE_add_cipher(e,EVP_dev_crypto_rc4()); - } + { + ENGINE_add_cipher(e,EVP_dev_crypto_des_ede3_cbc()); + ENGINE_add_cipher(e,EVP_dev_crypto_rc4()); + } ENGINE *ENGINE_openbsd_dev_crypto(void) - { - ENGINE *engine=ENGINE_new(); - - if(!ENGINE_set_id(engine,"openbsd_dev_crypto") - || !ENGINE_set_name(engine,"OpenBSD /dev/crypto")) { - ENGINE_free(engine); - return NULL; + ENGINE *engine=ENGINE_new(); + + if(!ENGINE_set_id(engine,"openbsd_dev_crypto") || + !ENGINE_set_name(engine,"OpenBSD /dev/crypto")) + { + ENGINE_free(engine); + return NULL; + } + load_ciphers(engine); + + return engine; } - load_ciphers(engine); - return engine; - } +#else /* !defined(OPENSSL_OPENBSD_DEV_CRYPTO) */ + +static void *dummy=&dummy; -#endif +#endif /* !defined(OPENSSL_OPENBSD_DEV_CRYPTO) */