summaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-07-28 14:42:53 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-07-28 14:42:53 +0000
commit572712d82ab39b74660052d845365de0963c8ba8 (patch)
treeb0f8932fe75ec00cf074da62414c2241a1f1f5ed /crypto/ec
parentd1697a7556db3f4e8be95957cb0c72b376300703 (diff)
recognise ecdsaWithSHA1 OID
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/ec_pmeth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ec/ec_pmeth.c b/crypto/ec/ec_pmeth.c
index f433076ca1..d1ed66c37e 100644
--- a/crypto/ec/ec_pmeth.c
+++ b/crypto/ec/ec_pmeth.c
@@ -221,6 +221,7 @@ static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
case EVP_PKEY_CTRL_MD:
if (EVP_MD_type((const EVP_MD *)p2) != NID_sha1 &&
+ EVP_MD_type((const EVP_MD *)p2) != NID_ecdsa_with_SHA1 &&
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_sha384 &&