OCSP_copy_nonce

Copy the nonce extension from an OCSP request into a basic response.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_copy_nonce(
    OCSP_BASICRESP* resp,
    OCSP_REQUEST* req);

Return Value

1 if a nonce was copied, 2 if the request had no nonce, or 0 on error.

Parameters

NameDescription
respBasic response receiving the nonce.
reqRequest whose nonce extension is copied when present.