diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-05-08 12:38:35 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-05-08 12:38:35 +0000 |
commit | fc683d7213a03ca97395735c42b6278d6916fa08 (patch) | |
tree | 3315d9dc6cbd7b3590210598b37863d28b6e61e6 /crypto | |
parent | 03bc500a9ffdf20898651be66887cbdfc1d3fff9 (diff) |
allow SHA384, SHA512 wit DSA
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/dsa/dsa_pmeth.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |