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

Name

Description

ri

Recipient info of type CMS_RECIPINFO_AGREE.

pubalg

Receives the originator public‐key algorithm, or NULL if not requested.

pubkey

Receives the originator public key BIT STRING, or NULL if not requested.

keyid

Receives the originator subject key identifier, or NULL if not requested.

issuer

Receives the originator issuer name, or NULL if not requested.

sno

Receives the originator serial number, or NULL if not requested.

Created with MrDocs