From 512d22283093a86c6fe36dffff7da50ffc4203a7 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sun, 17 Jan 1999 14:14:41 +0000 Subject: [PATCH] Remove pointless MD5 hash. Contributed by: Anonymous --- CHANGES | 3 +++ apps/ca.c | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index c3f7f1890b..d117eb6314 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,9 @@ Changes between 0.9.1c and 0.9.2 + *) Remove pointless MD5 hash when using DSA keys in ca. + [Anonymous ] + *) Generate an error if given an empty string as a cert directory. Also generate an error if handed NULL (previously returned 0 to indicate an error, but didn't set one). diff --git a/apps/ca.c b/apps/ca.c index 7a14285397..1ea90aa96a 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -1023,11 +1023,15 @@ bad: } } else - dgst=EVP_md5(); + { #ifndef NO_DSA - if (pkey->type == EVP_PKEY_DSA) - dgst = EVP_dss1() ; + if (pkey->type == EVP_PKEY_DSA) + dgst=EVP_dss1(); + else #endif + dgst=EVP_md5(); + } + if (!X509_CRL_sign(crl,pkey,dgst)) goto err; PEM_write_bio_X509_CRL(Sout,crl); -- 2.25.1