[#OCSP_basic_add1_cert]
= OCSP&lowbar;basic&lowbar;add1&lowbar;cert
:mrdocs:

Add a certificate to the optional certs field of a basic OCSP 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;cert(
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* resp,
    xref:X509.adoc[X509]* cert);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *resp*
| Basic response to update&period;
| *cert*
| Certificate to include (reference count increased)&period;
|===


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