![]() | ![]() | |||||||||||||||||
| ||||||||||||||||||
| CMS_add1_recipient_cert(3)
NAMECMS_add1_recipient_cert, CMS_add0_recipient_key - add recipients to a CMS enveloped data structure
SYNOPSIS#include <openssl/cms.h> CMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms, X509 *recip, unsigned int flags); CMS_RecipientInfo *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
The CMS_ContentInfo structure should be obtained from an initial call to
NOTES
The main purpose of this function is to provide finer control over a CMS
enveloped data structure where the simpler OpenSSL will by default identify recipient certificates using issuer name and serial number. If CMS_USE_KEYID is set it will use the subject key identifier value instead. An error occurs if all recipient certificates do not have a subject key identifier extension. Currently only AES based key wrapping algorithms are supported for nid, specifically: NID_id_aes128_wrap, NID_id_aes192_wrap and NID_id_aes256_wrap. If nid is set to NID_undef then an AES wrap algorithm will be used consistent with keylen.
RETURN VALUES
SEE ALSOERR_get_error(3), CMS_decrypt(3), CMS_final(3),
HISTORY
| |||||||||||||||||