CMS_SIGN_RECEIPT(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’– 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 πŸ’…

  • si is the CMS_SignerInfo structure containing the signed receipt request.
  • signcert is the certificate to sign with.
  • pkey is the corresponding private key.
  • certs is an optional additional set of certificates to include in the CMS structure β€” like any intermediate CAs in the chain, iykyk πŸ¦‹
  • flags is an optional set of flags.

πŸ”₯ NOTES πŸ”₯

This function behaves in a similar way to CMS_sign(), except these flag values are not supported:

  • CMS_DETACHED
  • CMS_BINARY
  • CMS_NOATTR
  • CMS_TEXT
  • CMS_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 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