[#OCSP_basic_add1_nonce]
= OCSP&lowbar;basic&lowbar;add1&lowbar;nonce
:mrdocs:

Add an OCSP nonce extension to a basic response&period;

== Synopsis

Declared in `&lt;openssl&sol;ocsp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;basic&lowbar;add1&lowbar;nonce(
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* resp,
    unsigned char* val,
    int len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *resp*
| Basic OCSP response to update&period;
| *val*
| Nonce bytes to copy, or NULL to generate a random nonce of length `len` (or a default length when `len` &lt;&equals; 0)&period;
| *len*
| Length of `val,` or desired generated length when `val` is NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
