提交 512d2228 编写于 作者: B Ben Laurie

Remove pointless MD5 hash.

Contributed by: Anonymous <nobody@replay.com>
上级 2c1ef383
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
Changes between 0.9.1c and 0.9.2 Changes between 0.9.1c and 0.9.2
*) Remove pointless MD5 hash when using DSA keys in ca.
[Anonymous <nobody@replay.com>]
*) Generate an error if given an empty string as a cert directory. Also *) 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 generate an error if handed NULL (previously returned 0 to indicate an
error, but didn't set one). error, but didn't set one).
......
...@@ -1023,11 +1023,15 @@ bad: ...@@ -1023,11 +1023,15 @@ bad:
} }
} }
else else
dgst=EVP_md5(); {
#ifndef NO_DSA #ifndef NO_DSA
if (pkey->type == EVP_PKEY_DSA) if (pkey->type == EVP_PKEY_DSA)
dgst = EVP_dss1() ; dgst=EVP_dss1();
else
#endif #endif
dgst=EVP_md5();
}
if (!X509_CRL_sign(crl,pkey,dgst)) goto err; if (!X509_CRL_sign(crl,pkey,dgst)) goto err;
PEM_write_bio_X509_CRL(Sout,crl); PEM_write_bio_X509_CRL(Sout,crl);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册