fixing issue hash printing
@@ -510,13 +510,14 @@ static const char *certid_summary(const OCSP_CERTID *certid, apr_pool_t *p)
ASN1_OCTET_STRING *aname_hash, *akey_hash;
ASN1_OBJECT *amd_nid;
BIGNUM *bn;
+ md_data_t data;
serial = issuer = "???";
OCSP_id_get0_info(&aname_hash, &amd_nid, &akey_hash, &aserial, (OCSP_CERTID*)certid);
if (aname_hash) {
- ASN1_STRING_to_UTF8((unsigned char**)&s, aname_hash);
- issuer = apr_pstrdup(p, s);
- OPENSSL_free((void*)s);
+ data.len = (apr_size_t)aname_hash->length;
+ data.data = (const char*)aname_hash->data;
+ md_data_to_hex(&issuer, 0, p, &data);
}
if (aserial) {
bn = ASN1_INTEGER_to_BN(aserial, NULL);
