CMS_VERIFY_RECEIPT(3ossl)
π CMS_VERIFY_RECEIPT π
okay bestie, welcome to the CMS_verify_receipt page from the OpenSSL manual, section 3ossl π she's a little one but she's important, so let's get into it β¨
πΈ NAME πΈ
CMS_verify_receipt β verify a CMS signed receipt π§Ύβ
β¨ SYNOPSIS β¨
#include <openssl/cms.h>
int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,
STACK_OF(X509) *certs, X509_STORE *store,
unsigned int flags);
π DESCRIPTION π
So CMS_verify_receipt() does exactly what it says on the tin: it verifies a CMS signed receipt. Slay. π«Ά
Here's the cast of characters, one by one, no skipping:
rcmsβ this is the signed receipt we're actually verifying. the main character of this function ngl πocmsβ the originalSignedDatastructure that contains the receipt request. like, the context, the backstory, the lore π¦certsβ a set of certificates where we go looking for the signing certificate. think of it as the group chat we search for the right person in π¬storeβ a trusted certificate store. this one's for chain verification, so it's the responsible adult in the room π§flagsβ an optional set of flags that you can use to tweak the verify operation however you like β¨
π NOTES π
This function lowkey behaves a lot like CMS_verify(), except β and this is the important part, no cap β these flag values are not supported:
CMS_DETACHEDCMS_BINARYCMS_TEXTCMS_STREAM
Why? because they genuinely don't make sense in the context of signed receipts. it's giving "wrong vibe, wrong era" π don't try to sneak them in.
π― RETURN VALUES π―
CMS_verify_receipt() returns 1 when the verification goes off without a hitch β icon behaviour, we love to see it π β and returns zero if an error happened π
You can grab the error from ERR_get_error(3).
π 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>.
and that's the whole page bestie, we ate and left no crumbs πβ¨ this was CMS_VERIFY_RECEIPT(3ossl) from version 3.5.9, dated 2026-09-29 β mwah, go verify some receipts π π«Ά
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms