[#OCSP_RESPID_set_by_name]
= OCSP&lowbar;RESPID&lowbar;set&lowbar;by&lowbar;name
:mrdocs:

Set a ResponderID to the subject name of `cert&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;RESPID&lowbar;set&lowbar;by&lowbar;name(
    xref:OCSP_RESPID.adoc[OCSP&lowbar;RESPID]* respid,
    xref:X509.adoc[X509]* cert);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *respid*
| ResponderID to update&period;
| *cert*
| Certificate whose subject name becomes the byName identity&period;
|===


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