CMS_sign_add1_signer(3) | LibreSSL | CMS_sign_add1_signer(3) |
NAME
CMS_sign_add1_signer, CMS_SignerInfo_sign - add a signer to a CMS_ContentInfo signed data structure.SYNOPSIS
#include <openssl/cms.h>
CMS_SignerInfo *CMS_sign_add1_signer(CMS_ContentInfo *cms, X509 *signcert, EVP_PKEY *pkey, const EVP_MD *md, unsigned int flags);
int CMS_SignerInfo_sign(CMS_SignerInfo *si);
DESCRIPTION
CMS_sign_add1_signer() adds a signer with certificate signcert and private key pkey using message digest md to CMS_ContentInfo SignedData structure cms.NOTES
The main purpose of CMS_sign_add1_signer() is to provide finer control over a CMS signed data structure where the simpler CMS_sign() function defaults are not appropriate. For example if multiple signers or non default digest algorithms are needed. New attributes can also be added using the returned CMS_SignerInfo structure and the CMS attribute utility functions or the CMS signed receipt request functions.RETURN VALUES
CMS_sign1_add_signers() returns an internal pointer to the CMS_SignerInfo structure just added or NULL if an error occurs.SEE ALSO
ERR_get_error(3), CMS_sign(3), CMS_final(3),HISTORY
CMS_sign_add1_signer() was added to OpenSSL 0.9.82015-10-26 | LibreSSL |