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

Name

Description

rek

RecipientEncryptedKey to query.

keyid

Receives subjectKeyIdentifier when that form is used, or NULL to skip.

tm

Receives date when present with subjectKeyIdentifier, or NULL to skip.

other

Receives otherKeyAttribute when present, or NULL to skip.

issuer

Receives issuer name when IssuerAndSerialNumber is used, or NULL to skip.

sno

Receives serial number when IssuerAndSerialNumber is used, or NULL to skip.

Created with MrDocs