projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1939f83
)
don't add digest alias if signature algorithm is undefined
author
Dr. Stephen Henson
<steve@openssl.org>
Sat, 6 Mar 2010 20:52:33 +0000
(20:52 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sat, 6 Mar 2010 20:52:33 +0000
(20:52 +0000)
crypto/evp/names.c
patch
|
blob
|
history
diff --git
a/crypto/evp/names.c
b/crypto/evp/names.c
index e2e04c3570f461ae5e941db3de4db91a702310dd..945879dc39a6c87a4d1766bc5b701d4dc404cba4 100644
(file)
--- 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);