Populate a PKCS#7 signer info with certificate, key, and digest algorithm.
Declared in <openssl/pkcs7.h>
int
PKCS7_SIGNER_INFO_set(
PKCS7_SIGNER_INFO* p7i,
X509* x509,
EVP_PKEY* pkey,
EVP_MD const* dgst);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| p7i | SignerInfo to configure. |
| x509 | Signer's certificate (sets issuer/serial). |
| pkey | Signer's private key. |
| dgst | Digest algorithm used for the signature. |