[#PKCS7_SIGNER_INFO_set]
= PKCS7&lowbar;SIGNER&lowbar;INFO&lowbar;set
:mrdocs:

Populate a PKCS&num;7 signer info with certificate, key, and digest algorithm&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;SIGNER&lowbar;INFO&lowbar;set(
    xref:PKCS7_SIGNER_INFO.adoc[PKCS7&lowbar;SIGNER&lowbar;INFO]* p7i,
    xref:X509.adoc[X509]* x509,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* dgst);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p7i*
| SignerInfo to configure&period;
| *x509*
| Signer&apos;s certificate (sets issuer&sol;serial)&period;
| *pkey*
| Signer&apos;s private key&period;
| *dgst*
| Digest algorithm used for the signature&period;
|===


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