Supply the password used to derive the KEK for a PasswordRecipientInfo.
Declared in <openssl/cms.h>
int
CMS_RecipientInfo_set0_password(
CMS_RecipientInfo* ri,
unsigned char* pass,
ssize_t passlen);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ri | Recipient info of type CMS_RECIPINFO_PASS. |
| pass | Password bytes; ownership transfers to ri (may be cleared on free). |
| passlen | Length of pass in bytes, or -1 if NUL-terminated. |