[#OCSP_check_nonce]
= OCSP&lowbar;check&lowbar;nonce
:mrdocs:

Compare OCSP nonce extensions between a request and a basic response&period;

== Synopsis

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

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

== Return Value

1 if nonces match, 2 if neither has a nonce, 3 if only the response has one, 0 if present but unequal, or &hyphen;1 if only the request has a nonce&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *req*
| OCSP request that may contain a nonce&period;
| *bs*
| Basic response that may contain a matching nonce&period;
|===


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