Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
CMS_add0_cert, CMS_add1_cert, CMS_get1_certs, CMS_add0_crl, CMS_add1_crl, CMS_get1_crls — CMS certificate and CRL utility functionsSYNOPSIS
#include <openssl/cms.h>CMS_add0_cert(CMS_ContentInfo *cms, X509 *certificate);
CMS_add1_cert(CMS_ContentInfo *cms, X509 *certificate);
CMS_get1_certs(CMS_ContentInfo *cms);
CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);
CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);
CMS_get1_crls(CMS_ContentInfo *cms);
DESCRIPTION
CMS_add0_cert() adds the certificate to the certificates field of cms if it is of the type SignedData or to the originatorInfo.certs field if it is of the type EnvelopedData. CMS_add1_cert() does the same and also increments the reference count of the certificate with X509_up_ref(3) in case of success.RETURN VALUES
CMS_add0_cert(), CMS_add1_cert(), CMS_add0_crl(), and CMS_add1_crl() return 1 for success or 0 for failure.STANDARDS
RFC 5652: Cryptographic Message Syntax- section 5.1: SignedData Type
- section 6.1: EnvelopedData Type