Create a signer info from x509 / pkey / dgst and add it to signed PKCS#7 p7.
Synopsis
Declared in <openssl/pkcs7.h>
PKCS7_SIGNER_INFO*
PKCS7_add_signature(
PKCS7* p7,
X509* x509,
EVP_PKEY* pkey,
EVP_MD const* dgst);
Return Value
The new PKCS7_SIGNER_INFO on success, or NULL on failure.
Parameters
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 |
dgst |
Message digest algorithm used for signing. |
Created with MrDocs