From: Dr. Stephen Henson Date: Sat, 6 Mar 2010 20:47:45 +0000 (+0000) Subject: don't add digest alias if signature algorithm is undefined X-Git-Tag: OpenSSL_1_0_0~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bf638ef026f252cb04779d9f779f135a9f56ec17;p=oweals%2Fopenssl.git don't add digest alias if signature algorithm is undefined --- diff --git a/crypto/evp/names.c b/crypto/evp/names.c index 7e4d742a66..f2869f5c78 100644 --- a/crypto/evp/names.c +++ b/crypto/evp/names.c @@ -86,7 +86,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);