CMS_SIGN_RECEIPT(3ossl)
π CMS_sign_receipt π
okay bestie, welcome to the 3ossl manual page for CMS_sign_receipt β it's giving βcreate a CMS signed receiptβ main character energy β¨
π NAME π
CMS_sign_receipt β create a CMS signed receipt π
π SYNOPSIS π
#include <openssl/cms.h>
CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si, X509 *signcert,
EVP_PKEY *pkey, STACK_OF(X509) *certs,
unsigned int flags);
πΈ DESCRIPTION πΈ
okay so CMS_sign_receipt() creates and returns a CMS signed receipt structure. No cap, thatβs the whole vibe π
siis theCMS_SignerInfostructure containing the signed receipt request.signcertis the certificate to sign with.pkeyis the corresponding private key.certsis an optional additional set of certificates to include in the CMS structure β like any intermediate CAs in the chain, iykyk π¦flagsis an optional set of flags.
π₯ NOTES π₯
This function behaves in a similar way to CMS_sign(), except these flag values are not supported:
CMS_DETACHEDCMS_BINARYCMS_NOATTRCMS_TEXTCMS_STREAM
why? because they do not make sense in the context of signed receipts, bestie π so donβt come for them, theyβre literally not invited π
π RETURN VALUES π
CMS_sign_receipt() returns either a valid CMS_ContentInfo structure or NULL if an error occurred. The error can be obtained from ERR_get_error(3) β thatβs your receipts for what went wrong π§Ύβ¨
π SEE ALSO π
π COPYRIGHT π
Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
This page is serving OpenSSL 3.5.0, dated 2026-09-25 β signing off, bestie π
β¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms