From: Dr. Stephen Henson Date: Sun, 8 May 2011 12:38:51 +0000 (+0000) Subject: allow SHA384, SHA512 with DSA X-Git-Tag: OpenSSL_1_0_1-beta1~331 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=889c2282a594de2eeeb4df43a68f24dc354b131a;p=oweals%2Fopenssl.git allow SHA384, SHA512 with DSA --- diff --git a/crypto/dsa/dsa_pmeth.c b/crypto/dsa/dsa_pmeth.c index 0ad12e008d..5604c5016f 100644 --- a/crypto/dsa/dsa_pmeth.c +++ b/crypto/dsa/dsa_pmeth.c @@ -188,7 +188,9 @@ static int pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) if (EVP_MD_type((const EVP_MD *)p2) != NID_sha1 && EVP_MD_type((const EVP_MD *)p2) != NID_dsa && EVP_MD_type((const EVP_MD *)p2) != NID_sha224 && - EVP_MD_type((const EVP_MD *)p2) != NID_sha256) + EVP_MD_type((const EVP_MD *)p2) != NID_sha256 && + EVP_MD_type((const EVP_MD *)p2) != NID_sha384 && + EVP_MD_type((const EVP_MD *)p2) != NID_sha512) { DSAerr(DSA_F_PKEY_DSA_CTRL, DSA_R_INVALID_DIGEST_TYPE); return 0;