CMS_SIGN_RECEIPT(3ossl)
π§Ύ NAME π§Ύ
CMS_sign_receipt β create a CMS signed receipt. Bestie, this is the CMS_SIGN_RECEIPT(3ossl) page from OpenSSL, and we're making signed receipts. No cap. π
β¨ 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. It's giving "receipt, but make it signed" and honestly? Iconic. π
siβ theCMS_SignerInfostructure containing the signed receipt request. This is literally the main character of the request, iykyk.signcertβ the certificate to sign with. Slay.pkeyβ the corresponding private key. Guard it with your life, bestie. πcertsβ an optional additional set of certificates to include in the CMS structure (for example any intermediate CAs in the chain). Lowkey important if you've got a whole chain situation going on.flagsβ an optional set of flags. Cute little toggles, but read the notes first, fr fr.
β οΈ 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, and CMS_STREAM. The way that they do not make sense in the context of signed receipts β periodt. So don't try to force them, bestie; it's not the vibe. π
π RETURN VALUES π
CMS_sign_receipt() returns either a valid CMS_ContentInfo structure or NULL if an error occurred. If you get NULL, it's giving "something went wrong," and you can obtain the error from ERR_get_error(3). Go check it, ngl. π
π SEE ALSO π
These are your linked-up besties for this page. Obsessed with a cross-reference. π«Ά
Β©οΈ 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>.
π That's the wholeCMS_SIGN_RECEIPT(3ossl)page from OpenSSL3.5.6, dated2026-04-07. K bye bestie, go sign those receipts and slay! πβ¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms