End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::OCSP::SingleResponse#revocation_reason
single_response.revocation_reason → Integer | nil
ext/openssl/ossl_ocsp.c
View on GitHub ↗
static VALUE
ossl_ocspsres_get_revocation_reason(VALUE self)
{
OCSP_SINGLERESP *sres;
int status, reason;
GetOCSPSingleRes(self, sres);
status = OCSP_single_get0_status(sres, &reason, NULL, NULL, NULL);
if (status < 0)
ossl_raise(eOCSPError, "OCSP_single_get0_status");
if (status != V_OCSP_CERTSTATUS_REVOKED)
ossl_raise(eOCSPError, "certificate is not revoked");
return INT2NUM(reason);
}
No documentation available
See also
#next_update
#revocation_time
#initialize_copy
#this_update
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0