CMS_sign_receipt

Create a CMS signed receipt ContentInfo for a SignerInfo that requested a receipt.

Synopsis

Declared in <openssl/cms.h>

CMS_ContentInfo*
CMS_sign_receipt(
    CMS_SignerInfo* si,
    X509* signcert,
    EVP_PKEY* pkey,
    stack_st_X509* certs,
    unsigned int flags);

Return Value

New signed-receipt ContentInfo, or NULL on error.

Parameters

NameDescription
siSignerInfo from the original SignedData that contains the receipt request.
signcertCertificate of the receipt signer.
pkeyPrivate key corresponding to signcert.
certsOptional additional certificates to include (for example intermediate CAs), or NULL.
flagsOptional CMS flags (CMS_DETACHED, CMS_BINARY, CMS_NOATTR, CMS_TEXT, and CMS_STREAM are not supported).