diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-03-06 20:47:30 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-03-06 20:47:30 +0000 |
commit | 17084562205108d08d562065b0fcbf5722a03186 (patch) | |
tree | 8831e00b1334b1f64891c68767b99cefb5c44ba5 /crypto | |
parent | ff04bbe363ae8e98ab78c9d1c3735e9ac220c4b9 (diff) |
don't add digest alias if signature algorithm is undefined
Diffstat (limited to 'crypto')
-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 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); |