Class: OSSL::OCSP::Request
- Inherits:
-
Object
- Object
- OSSL::OCSP::Request
- Defined in:
- ossl_ocsp.c
Instance Method Summary collapse
- #add_certid ⇒ Object
- #add_nonce ⇒ Object
- #certid ⇒ Object
-
#check_nonce ⇒ Object
Check nonce validity in a request and response.
- #initialize ⇒ Object constructor
- #sign ⇒ Object
- #to_der ⇒ Object
- #verify ⇒ Object
Constructor Details
#initialize ⇒ Object
Instance Method Details
#add_certid ⇒ Object
#add_nonce ⇒ Object
#certid ⇒ Object
#check_nonce ⇒ Object
Check nonce validity in a request and response. Return value reflects result:
1: nonces present and equal.
2: nonces both absent.
3: nonce present in response only.
0: nonces both present and not equal.
-1: nonce in request only.
For most responders clients can check return > 0.
If responder doesn't handle nonces return != 0 may be
necessary. return == 0 is always an error.
|
# File 'ossl_ocsp.c'
static VALUE
ossl_ocspreq_check_nonce(VALUE self, VALUE basic_resp)
{
OCSP_REQUEST *req;
OCSP_BASICRESP *bs;
int res;
GetOCSPReq(self, req);
SafeGetOCSPBasicRes(basic_resp, bs);
res = OCSP_check_nonce(req, bs);
return INT2NUM(res);
}
|