allow SHA384, SHA512 wit DSA
authorDr. Stephen Henson <steve@openssl.org>
Sun, 8 May 2011 12:38:35 +0000 (12:38 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 8 May 2011 12:38:35 +0000 (12:38 +0000)
crypto/dsa/dsa_pmeth.c

index 0ad12e008df7f6802bc262ddcce056b1d2c728d7..5604c5016f87bb9b6a73564b81a19092ccaff9a0 100644 (file)
@@ -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;