PKCS7_sign_add_signer(3) | LibreSSL | PKCS7_sign_add_signer(3) |
NAME
PKCS7_sign_add_signer - add a signer PKCS7 signed data structure.SYNOPSIS
#include <openssl/pkcs7.h>
PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, EVP_PKEY *pkey, const EVP_MD *md, int flags);
DESCRIPTION
PKCS7_sign_add_signer() adds a signer with certificate signcert and private key pkey using message digest md to a PKCS7 signed data structure p7.NOTES
The main purpose of this function is to provide finer control over a PKCS#7 signed data structure where the simpler PKCS7_sign() function defaults are not appropriate. For example if multiple signers or non default digest algorithms are needed.RETURN VALUES
PKCS7_sign_add_signers() returns an internal pointer to the PKCS7_SIGNER_INFO structure just added or NULL if an error occurs.SEE ALSO
ERR_get_error(3), PKCS7_sign(3), PKCS7_final(3),HISTORY
PPKCS7_sign_add_signer() was added to OpenSSL 1.0.02015-10-26 | LibreSSL |