From a844e27baa68f9bd144b9ac81f2eeaf818fb8d5c Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Sat, 25 Aug 2001 18:01:36 +0000 Subject: [PATCH] Tidy up some code formatting. --- crypto/engine/hw_openbsd_dev_crypto.c | 36 +++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/crypto/engine/hw_openbsd_dev_crypto.c b/crypto/engine/hw_openbsd_dev_crypto.c index 6c8fdb6956..3e11fc59aa 100644 --- a/crypto/engine/hw_openbsd_dev_crypto.c +++ b/crypto/engine/hw_openbsd_dev_crypto.c @@ -53,31 +53,31 @@ * */ +#ifdef OPENSSL_OPENBSD_DEV_CRYPTO + #include #include #include "engine_int.h" -#ifdef OPENSSL_OPENBSD_DEV_CRYPTO - 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; - } - load_ciphers(engine); + ENGINE *engine=ENGINE_new(); - return engine; - } + 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; + } -#endif +#endif /* defined(OPENSSL_OPENBSD_DEV_CRYPTO) */ -- 2.25.1