CMS_RecipientEncryptedKey_get0_id

Extract KeyAgreeRecipientIdentifier fields from a RecipientEncryptedKey.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientEncryptedKey_get0_id(
    CMS_RecipientEncryptedKey* rek,
    ASN1_OCTET_STRING** keyid,
    ASN1_GENERALIZEDTIME** tm,
    CMS_OtherKeyAttribute** other,
    X509_NAME** issuer,
    ASN1_INTEGER** sno);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rekRecipientEncryptedKey to query.
keyidReceives subjectKeyIdentifier when that form is used, or NULL to skip.
tmReceives date when present with subjectKeyIdentifier, or NULL to skip.
otherReceives otherKeyAttribute when present, or NULL to skip.
issuerReceives issuer name when IssuerAndSerialNumber is used, or NULL to skip.
snoReceives serial number when IssuerAndSerialNumber is used, or NULL to skip.