CMS_ReceiptRequest_create0_ex

Allocate a CMS signed-receipt request using a library context for RNG.

Synopsis

Declared in <openssl/cms.h>

CMS_ReceiptRequest*
CMS_ReceiptRequest_create0_ex(
    unsigned char* id,
    int idlen,
    int allorfirst,
    stack_st_GENERAL_NAMES* receiptList,
    stack_st_GENERAL_NAMES* receiptsTo,
    OSSL_LIB_CTX* libctx);

Return Value

New CMS_ReceiptRequest taking ownership of the stacks on success, or NULL on error.

Parameters

NameDescription
idReceipt content identifier bytes, or NULL to generate a random id.
idlenLength of id in bytes; ignored when id is NULL.
allorfirstValue for receiptsFrom allOrFirstTier when receiptList is NULL.
receiptListStack of GeneralNames listing who should send receipts, or NULL.
receiptsToStack of GeneralNames listing where receipts should be sent, or NULL.
libctxLibrary context used to obtain the public random generator, or NULL.