Class: OSSL::OCSP::Response
- Inherits:
-
Object
- Object
- OSSL::OCSP::Response
- Defined in:
- ossl_ocsp.c
Class Method Summary collapse
-
.create ⇒ Object
OCSP::Response.
Instance Method Summary collapse
- #basic ⇒ Object
- #initialize ⇒ Object constructor
- #status ⇒ Object
- #status_string ⇒ Object
- #to_der ⇒ Object
Constructor Details
#initialize ⇒ Object
Class Method Details
.create ⇒ Object
OCSP::Response
|
# File 'ossl_ocsp.c'
static VALUE
ossl_ocspres_s_create(VALUE klass, VALUE status, VALUE basic_resp)
{
OCSP_BASICRESP *bs;
OCSP_RESPONSE *res;
VALUE obj;
int st = NUM2INT(status);
if(NIL_P(basic_resp)) bs = NULL;
else GetOCSPBasicRes(basic_resp, bs); /* NO NEED TO DUP */
if(!(res = OCSP_response_create(st, bs)))
ossl_raise(eOCSPError, NULL);
WrapOCSPRes(klass, obj, res);
return obj;
}
|