diff --git a/decrepit/obj/obj_decrepit.c b/decrepit/obj/obj_decrepit.c index 06051f11..8ea2e0aa 100644 --- a/decrepit/obj/obj_decrepit.c +++ b/decrepit/obj/obj_decrepit.c @@ -33,6 +33,7 @@ static void cipher_callback(const EVP_CIPHER *cipher, const char *name, memset(&obj_name, 0, sizeof(obj_name)); obj_name.type = OBJ_NAME_TYPE_CIPHER_METH; obj_name.name = name; + obj_name.data = (const char *)cipher; wrapped->callback(&obj_name, wrapped->arg); } @@ -45,6 +46,7 @@ static void md_callback(const EVP_MD *md, const char *name, const char *unused, memset(&obj_name, 0, sizeof(obj_name)); obj_name.type = OBJ_NAME_TYPE_MD_METH; obj_name.name = name; + obj_name.data = (const char *)md; wrapped->callback(&obj_name, wrapped->arg); } diff --git a/include/openssl/obj.h b/include/openssl/obj.h index 7e24820c..367cfdc9 100644 --- a/include/openssl/obj.h +++ b/include/openssl/obj.h @@ -193,7 +193,9 @@ OPENSSL_EXPORT int OBJ_find_sigid_by_algs(int *out_sign_nid, int digest_nid, typedef struct obj_name_st { int type; + int alias; const char *name; + const char *data; } OBJ_NAME; #define OBJ_NAME_TYPE_MD_METH 1