OCSP_basic_add1_nonce

Add an OCSP nonce extension to a basic response.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_basic_add1_nonce(
    OCSP_BASICRESP* resp,
    unsigned char* val,
    int len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
respBasic OCSP response to update.
valNonce bytes to copy, or NULL to generate a random nonce of length len (or a default length when len <= 0).
lenLength of val, or desired generated length when val is NULL.