Method: OpenSSL::OCSP::SingleResponse#certid

Defined in:
ossl_ocsp.c

#certidCertificateId

Returns the CertificateId for which this SingleResponse is.

Returns:



1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
# File 'ossl_ocsp.c', line 1228

static VALUE
ossl_ocspsres_get_certid(VALUE self)
{
    OCSP_SINGLERESP *sres;
    OCSP_CERTID *id;

    GetOCSPSingleRes(self, sres);
    id = OCSP_CERTID_dup((OCSP_CERTID *)OCSP_SINGLERESP_get0_id(sres)); /* FIXME */

    return ossl_ocspcertid_new(id);
}