diff options
author | Geoff Thorpe <geoff@openssl.org> | 2000-04-20 07:58:11 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2000-04-20 07:58:11 +0000 |
commit | da414db464cd7393ac8642dd1d285fd8be4a4c2a (patch) | |
tree | 6f7be8157b1b4ba80036d5963dd02ba8b206c9a2 /crypto/dsa/dsa_lib.c | |
parent | deb4d50e5125f7c26f36ac31b7c63ef805df9a85 (diff) |
The handling of DSA_METHOD and DH_METHOD wasn't quite as problematic as
with RSA_METHOD (the **_get_default_methods do set the default value if
it's not set). However, the code had some duplication and was a bit
conter-intuitive.
Diffstat (limited to 'crypto/dsa/dsa_lib.c')
-rw-r--r-- | crypto/dsa/dsa_lib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index 224e412afc..9c106b2b16 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -107,9 +107,8 @@ DSA *DSA_new_method(DSA_METHOD *meth) DSAerr(DSA_F_DSA_NEW,ERR_R_MALLOC_FAILURE); return(NULL); } - if(!default_DSA_method) default_DSA_method = DSA_OpenSSL(); if(meth) ret->meth = meth; - else ret->meth = default_DSA_method; + else ret->meth = DSA_get_default_method(); ret->pad=0; ret->version=0; ret->write_params=1; |