instance method
OpenSSL::OCSP::BasicResponse#copy_nonce
(::OpenSSL::OCSP::Request request) -> ::Integer
basic_response.copy_nonce(request) → Integer
ext/openssl/ossl_ocsp.c
View on GitHub ↗
static VALUE
ossl_ocspbres_copy_nonce(VALUE self, VALUE request)
{
OCSP_BASICRESP *bs;
OCSP_REQUEST *req;
int ret;
GetOCSPBasicRes(self, bs);
GetOCSPReq(request, req);
ret = OCSP_copy_nonce(bs, req);
return INT2NUM(ret);
}
Copies the nonce from request into this response. Returns 1 on success and 0 on failure.