diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-03-06 20:52:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-03-06 20:52:33 +0000 |
commit | 9a542ea01d541a7c008f486db13a950f1b03f975 (patch) | |
tree | 1289be9aad4605d5073aa3065f966f5e8cf88cfb | |
parent | 1939f8370929280578f8daabf10c10b1fac6f0e0 (diff) | |
download | openssl-9a542ea01d541a7c008f486db13a950f1b03f975.tar.gz |
don't add digest alias if signature algorithm is undefined
-rw-r--r-- | crypto/evp/names.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/names.c b/crypto/evp/names.c index e2e04c3570..945879dc39 100644 --- a/crypto/evp/names.c +++ b/crypto/evp/names.c @@ -90,7 +90,7 @@ int EVP_add_digest(const EVP_MD *md) r=OBJ_NAME_add(OBJ_nid2ln(md->type),OBJ_NAME_TYPE_MD_METH,(const char *)md); if (r == 0) return(0); - if (md->type != md->pkey_type) + if (md->pkey_type && md->type != md->pkey_type) { r=OBJ_NAME_add(OBJ_nid2sn(md->pkey_type), OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS,name); |