Method: OpenSSL::OCSP::BasicResponse#copy_nonce

Defined in:
ossl_ocsp.c

#copy_nonce(request) ⇒ Integer

Copies the nonce from request into this response. Returns 1 on success and 0 on failure.

Returns:



730
731
732
733
734
735
736
737
738
739
740
741
742
# File 'ossl_ocsp.c', line 730

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);
}