[#PKCS7_add_signature] = PKCS7_add_signature :mrdocs: Create a signer info from `x509` / `pkey` / `dgst` and add it to signed PKCS#7 `p7.` == Synopsis Declared in `<openssl/pkcs7.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:PKCS7_SIGNER_INFO.adoc[PKCS7_SIGNER_INFO]* PKCS7_add_signature( xref:PKCS7.adoc[PKCS7]* p7, xref:X509.adoc[X509]* x509, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, xref:EVP_MD.adoc[EVP_MD] const* dgst); ---- == Return Value The new PKCS7_SIGNER_INFO on success, or NULL on failure. == Parameters [cols="1,4"] |=== | Name| Description | *p7* | PKCS#7 SignedData (or signed‐and‐enveloped) object to update. | *x509* | Signer certificate identifying the signing key. | *pkey* | Private key corresponding to `x509.` | *dgst* | Message digest algorithm used for signing. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#