CMS_RecipientInfo_kari_get0_orig_id

Get the originator identifier from a key-agreement RecipientInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_kari_get0_orig_id(
    CMS_RecipientInfo* ri,
    X509_ALGOR** pubalg,
    ASN1_BIT_STRING** pubkey,
    ASN1_OCTET_STRING** keyid,
    X509_NAME** issuer,
    ASN1_INTEGER** sno);

Return Value

1 on success, or 0 if ri is not a key-agreement recipient.

Parameters

NameDescription
riRecipient info of type CMS_RECIPINFO_AGREE.
pubalgReceives the originator public-key algorithm, or NULL if not requested.
pubkeyReceives the originator public key BIT STRING, or NULL if not requested.
keyidReceives the originator subject key identifier, or NULL if not requested.
issuerReceives the originator issuer name, or NULL if not requested.
snoReceives the originator serial number, or NULL if not requested.