diff options
Diffstat (limited to 'tools/cert_create/src/ext.c')
-rw-r--r-- | tools/cert_create/src/ext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cert_create/src/ext.c b/tools/cert_create/src/ext.c index 8ae6640d..055ddbfd 100644 --- a/tools/cert_create/src/ext.c +++ b/tools/cert_create/src/ext.c @@ -166,7 +166,7 @@ X509_EXTENSION *ext_new_hash(int nid, int crit, const EVP_MD *md, int sz; /* OBJECT_IDENTIFIER with hash algorithm */ - algorithm = OBJ_nid2obj(md->type); + algorithm = OBJ_nid2obj(EVP_MD_type(md)); if (algorithm == NULL) { return NULL; } |