[#OCSP_request_set1_name]
= OCSP&lowbar;request&lowbar;set1&lowbar;name
:mrdocs:

Set the optional requestorName in an OCSP request to a directory name&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;request&lowbar;set1&lowbar;name(
    xref:OCSP_REQUEST.adoc[OCSP&lowbar;REQUEST]* req,
    xref:X509_NAME.adoc[X509&lowbar;NAME] const* nm);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *req*
| OCSP request to update&period;
| *nm*
| X&period;509 name copied into requestorName&period;
|===


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