CMS_verify(3) | LibreSSL | CMS_verify(3) |
NAME
CMS_verify, CMS_get0_signers - verify a CMS SignedData structureSYNOPSIS
#include <openssl/cms.h>
int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, X509_STORE *store, BIO *indata, BIO *out, unsigned int flags);
STACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);
DESCRIPTION
CMS_verify() verifies a CMS SignedData structure. cms is the CMS_ContentInfo structure to verify. certs is a set of certificates in which to search for the signing certificate(s). store is a trusted certificate store used for chain verification. indata is the detached content if the content is not present in cms. The content is written to out if it is not NULL.VERIFY PROCESS
Normally the verify process proceeds as follows.NOTES
One application of CMS_NOINTERN is to only accept messages signed by a small number of certificates. The acceptable certificates would be passed in the certs parameter. In this case if the signer is not one of the certificates supplied in certs then the verify will fail because the signer cannot be found.RETURN VALUES
CMS_verify() returns 1 for a successful verification and zero if an error occurred.BUGS
The trusted certificate store is not searched for the signing certificate, this is primarily due to the inadequacies of the current X509_STORE functionality.SEE ALSO
ERR_get_error(3), CMS_sign(3)HISTORY
CMS_verify() was added to OpenSSL 0.9.82015-10-26 | LibreSSL |