CMS_RecipientInfo_set0_password

Supply the password used to derive the KEK for a PasswordRecipientInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_set0_password(
    CMS_RecipientInfo* ri,
    unsigned char* pass,
    ssize_t passlen);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
riRecipient info of type CMS_RECIPINFO_PASS.
passPassword bytes; ownership transfers to ri (may be cleared on free).
passlenLength of pass in bytes, or -1 if NUL-terminated.