Create a signer info from x509 / pkey / dgst and add it to signed PKCS#7 p7.
Declared in <openssl/pkcs7.h>
PKCS7_SIGNER_INFO*
PKCS7_add_signature(
PKCS7* p7,
X509* x509,
EVP_PKEY* pkey,
EVP_MD const* dgst);
The new PKCS7_SIGNER_INFO on success, or NULL on failure.
| 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. |