[#OCSP_copy_nonce]
= OCSP&lowbar;copy&lowbar;nonce
:mrdocs:

Copy the nonce extension from an OCSP request into a basic response&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;copy&lowbar;nonce(
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* resp,
    xref:OCSP_REQUEST.adoc[OCSP&lowbar;REQUEST]* req);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *resp*
| Basic response receiving the nonce&period;
| *req*
| Request whose nonce extension is copied when present&period;
|===


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