Stop using and deprecate ENGINE_setup_bsd_cryptodev
authorRichard Levitte <levitte@openssl.org>
Tue, 5 Jul 2016 11:54:49 +0000 (13:54 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 5 Jul 2016 21:52:09 +0000 (23:52 +0200)
The calls we made to it were redundant, as the same initialization is
done later in OPENSSL_init_crypto() anyway.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/init.c
include/openssl/engine.h

index 693037fe009e0f6221dbfe0ccae9dda3ac9172b3..f38129fa20e8c62de15c4a255956ab1fba3f7d8b 100644 (file)
@@ -116,11 +116,6 @@ static void ossl_init_add_all_ciphers(void)
                     "openssl_add_all_ciphers_int()\n");
 # endif
     openssl_add_all_ciphers_int();
-# ifndef OPENSSL_NO_ENGINE
-#  if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
-    ENGINE_setup_bsd_cryptodev();
-#  endif
-# endif
 #endif
 }
 
@@ -137,11 +132,6 @@ static void ossl_init_add_all_digests(void)
                     "openssl_add_all_digests()\n");
 # endif
     openssl_add_all_digests_int();
-# ifndef OPENSSL_NO_ENGINE
-#  if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
-    ENGINE_setup_bsd_cryptodev();
-#  endif
-# endif
 #endif
 }
 
index e9d3ab244a033997a8df507f91e174e574622882..f359c9ee573dc98fc0d3970705038e18a0672cc6 100644 (file)
@@ -746,7 +746,7 @@ typedef int (*dynamic_bind_engine) (ENGINE *e, const char *id,
 void *ENGINE_get_static_state(void);
 
 # if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(HAVE_CRYPTODEV)
-void ENGINE_setup_bsd_cryptodev(void);
+DEPRECATEDIN_1_1_0(void ENGINE_setup_bsd_cryptodev(void))
 # endif
 
 /* BEGIN ERROR CODES */