[#OCSP_basic_add1_nonce] = OCSP_basic_add1_nonce :mrdocs: Add an OCSP nonce extension to a basic response. == Synopsis Declared in `<openssl/ocsp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OCSP_basic_add1_nonce( xref:OCSP_BASICRESP.adoc[OCSP_BASICRESP]* resp, unsigned char* val, int len); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *resp* | Basic OCSP response to update. | *val* | Nonce bytes to copy, or NULL to generate a random nonce of length `len` (or a default length when `len` <= 0). | *len* | Length of `val,` or desired generated length when `val` is NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#