instance method
OpenSSL::OCSP::CertificateId#issuer_name_hash
() -> ::String
certificate_id.issuer_name_hash → String
ext/openssl/ossl_ocsp.c
View on GitHub ↗
static VALUE
ossl_ocspcid_get_issuer_name_hash(VALUE self)
{
OCSP_CERTID *id;
ASN1_OCTET_STRING *name_hash;
VALUE ret;
GetOCSPCertId(self, id);
OCSP_id_get0_info(&name_hash, NULL, NULL, NULL, id);
ret = rb_str_new(NULL, ASN1_STRING_length(name_hash) * 2);
ossl_bin2hex(ASN1_STRING_get0_data(name_hash), RSTRING_PTR(ret),
ASN1_STRING_length(name_hash));
return ret;
}
Returns the issuerNameHash of this certificate ID, the hash of the issuer’s distinguished name calculated with the hashAlgorithm.