[#OCSP_basic_sign]
= OCSP&lowbar;basic&lowbar;sign
:mrdocs:

Sign a basic OCSP response with `signer` and `key&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;basic&lowbar;sign(
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* brsp,
    xref:X509.adoc[X509]* signer,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* key,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* dgst,
    stack&lowbar;st&lowbar;X509* certs,
    unsigned long flags);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *brsp*
| Basic response whose tbsResponseData is signed&period;
| *signer*
| Certificate identifying the responder&period;
| *key*
| Private key corresponding to `signer&period;`
| *dgst*
| Digest algorithm for the signature, or NULL for a default&period;
| *certs*
| Optional certificates to include with the response, or NULL&period;
| *flags*
| OCSP&lowbar;&ast; flags such as OCSP&lowbar;NOCERTS or OCSP&lowbar;RESPID&lowbar;KEY&period;
|===


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