CMS_RecipientInfo_ktri_get0_algs

Retrieve key-transport algorithms and related objects from a RecipientInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_ktri_get0_algs(
    CMS_RecipientInfo* ri,
    EVP_PKEY** pk,
    X509** recip,
    X509_ALGOR** palg);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
riRecipient info of type CMS_RECIPINFO_TRANS.
pkReceives the recipient public key if available, or NULL if not requested.
recipReceives the recipient certificate if available, or NULL if not requested.
palgReceives the key-encryption algorithm, or NULL if not requested.