Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
CMS_add1_recipient_cert, CMS_add0_recipient_key — add recipients to a CMS EnvelopedData structureSYNOPSIS
#include <openssl/cms.h>CMS_add1_recipient_cert(CMS_ContentInfo *cms, X509 *certificate, unsigned int flags);
CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid, unsigned char *key, size_t keylen, unsigned char *id, size_t idlen, ASN1_GENERALIZEDTIME *date, ASN1_OBJECT *otherTypeId, ASN1_TYPE *otherType);
DESCRIPTION
These functions add a new RecipientInfo structure to the recipientInfos field of the EnvelopedData structure cms, which should have been obtained from an initial call to CMS_encrypt(3) with the flag CMS_PARTIAL set.RETURN VALUES
CMS_add1_recipient_cert() and CMS_add0_recipient_key() return an internal pointer to the CMS_RecipientInfo structure just added or NULL if an error occurs.STANDARDS
RFC 5652: Cryptographic Message Syntax- section 6.1: EnvelopedData Type
- section 6.2.1: KeyTransRecipientInfo Type
- section 6.2.3: KEKRecipientInfo Type