CMS_RecipientEncryptedKey_cert_cmp

Compare a certificate against the recipient identifier of a RecipientEncryptedKey.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientEncryptedKey_cert_cmp(
    CMS_RecipientEncryptedKey* rek,
    X509* cert);

Return Value

0 if cert matches the recipient id, non-zero if not, or -1 if the id form is unsupported.

Parameters

NameDescription
rekPer-recipient encrypted key from a KARI RecipientInfo.
certCandidate recipient certificate.