instance method
OpenSSL::OCSP::SingleResponse#extensions
() -> ::Array[::OpenSSL::X509::Certificate]
single_response.extensions → Array of X509::Extension
ext/openssl/ossl_ocsp.c
View on GitHub ↗
static VALUE
ossl_ocspsres_get_extensions(VALUE self)
{
OCSP_SINGLERESP *sres;
X509_EXTENSION *ext;
int count, i;
VALUE ary;
GetOCSPSingleRes(self, sres);
count = OCSP_SINGLERESP_get_ext_count(sres);
ary = rb_ary_new2(count);
for (i = 0; i < count; i++) {
ext = OCSP_SINGLERESP_get_ext(sres, i);
rb_ary_push(ary, ossl_x509ext_new(ext)); /* will dup */
}
return ary;
}
No documentation available
See also
#check_validity
#next_update
#cert_status
#revocation_reason
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0