1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos CMS_verify_receipt - verify a CMS signed receipt 6 1.1 christos 7 1.1 christos =head1 SYNOPSIS 8 1.1 christos 9 1.1 christos #include <openssl/cms.h> 10 1.1 christos 11 1.1 christos int CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, 12 1.1 christos STACK_OF(X509) *certs, X509_STORE *store, 13 1.1 christos unsigned int flags); 14 1.1 christos 15 1.1 christos =head1 DESCRIPTION 16 1.1 christos 17 1.1 christos CMS_verify_receipt() verifies a CMS signed receipt. B<rcms> is the signed 18 1.1 christos receipt to verify. B<ocms> is the original SignedData structure containing the 19 1.1 christos receipt request. B<certs> is a set of certificates in which to search for the 20 1.1 christos signing certificate. B<store> is a trusted certificate store (used for chain 21 1.1 christos verification). 22 1.1 christos 23 1.1 christos B<flags> is an optional set of flags, which can be used to modify the verify 24 1.1 christos operation. 25 1.1 christos 26 1.1 christos =head1 NOTES 27 1.1 christos 28 1.1 christos This functions behaves in a similar way to CMS_verify() except the flag values 29 1.1 christos B<CMS_DETACHED>, B<CMS_BINARY>, B<CMS_TEXT> and B<CMS_STREAM> are not 30 1.1 christos supported since they do not make sense in the context of signed receipts. 31 1.1 christos 32 1.1 christos =head1 RETURN VALUES 33 1.1 christos 34 1.1 christos CMS_verify_receipt() returns 1 for a successful verification and zero if an 35 1.1 christos error occurred. 36 1.1 christos 37 1.1 christos The error can be obtained from L<ERR_get_error(3)> 38 1.1 christos 39 1.1 christos =head1 SEE ALSO 40 1.1 christos 41 1.1 christos L<ERR_get_error(3)>, 42 1.1 christos L<CMS_sign_receipt(3)>, 43 1.1 christos L<CMS_verify(3)>, 44 1.1 christos 45 1.1 christos =head1 COPYRIGHT 46 1.1 christos 47 1.1 christos Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved. 48 1.1 christos 49 1.1.1.2 christos Licensed under the Apache License 2.0 (the "License"). You may not use 50 1.1 christos this file except in compliance with the License. You can obtain a copy 51 1.1 christos in the file LICENSE in the source distribution or at 52 1.1 christos L<https://www.openssl.org/source/license.html>. 53 1.1 christos 54 1.1 christos =cut 55