From 076fc55527a1499391fa6de109c8387895199ee9 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Fri, 7 Apr 2017 12:07:42 -0400 Subject: Make default_method mostly compile-time Document thread-safety issues Have RSA_null return NULL (always fails) Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/2244) --- crypto/dsa/dsa_lib.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'crypto/dsa/dsa_lib.c') diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index e24c6b526f..c90d09b0f0 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -17,20 +17,6 @@ #include #include -static const DSA_METHOD *default_DSA_method = NULL; - -void DSA_set_default_method(const DSA_METHOD *meth) -{ - default_DSA_method = meth; -} - -const DSA_METHOD *DSA_get_default_method(void) -{ - if (!default_DSA_method) - default_DSA_method = DSA_OpenSSL(); - return default_DSA_method; -} - DSA *DSA_new(void) { return DSA_new_method(NULL); -- cgit v1.2.3