1CMS_get1_ReceiptRequest(3) OpenSSL CMS_get1_ReceiptRequest(3)
2
3
4
6 CMS_ReceiptRequest_create0, CMS_add1_ReceiptRequest, CMS_get1_ReceiptRequest, CMS_ReceiptRequest_get0_values - CMS signed receipt request functions.
7
9 #include <openssl/cms.h>
10
11 CMS_ReceiptRequest *CMS_ReceiptRequest_create0(unsigned char *id, int idlen, int allorfirst, STACK_OF(GENERAL_NAMES) *receiptList, STACK_OF(GENERAL_NAMES) *receiptsTo);
12 int CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr);
13 int CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr);
14 void CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr, ASN1_STRING **pcid, int *pallorfirst, STACK_OF(GENERAL_NAMES) **plist, STACK_OF(GENERAL_NAMES) **prto);
15
17 CMS_ReceiptRequest_create0() creates a signed receipt request
18 structure. The signedContentIdentifier field is set using id and idlen,
19 or it is set to 32 bytes of pseudo random data if id is NULL. If
20 receiptList is NULL the allOrFirstTier option in receiptsFrom is used
21 and set to the value of the allorfirst parameter. If receiptList is not
22 NULL the receiptList option in receiptsFrom is used. The receiptsTo
23 parameter specifies the receiptsTo field value.
24
25 The CMS_add1_ReceiptRequest() function adds a signed receipt request rr
26 to SignerInfo structure si.
27
28 int CMS_get1_ReceiptRequest() looks for a signed receipt request in si,
29 if any is found it is decoded and written to prr.
30
31 CMS_ReceiptRequest_get0_values() retrieves the values of a receipt
32 request. The signedContentIdentifier is copied to pcid. If the
33 allOrFirstTier option of receiptsFrom is used its value is copied to
34 pallorfirst otherwise the receiptList field is copied to plist. The
35 receiptsTo parameter is copied to prto.
36
38 For more details of the meaning of the fields see RFC2634.
39
40 The contents of a signed receipt should only be considered meaningful
41 if the corresponding CMS_ContentInfo structure can be successfully
42 verified using CMS_verify().
43
45 CMS_ReceiptRequest_create0() returns a signed receipt request structure
46 or NULL if an error occurred.
47
48 CMS_add1_ReceiptRequest() returns 1 for success or 0 is an error
49 occurred.
50
51 CMS_get1_ReceiptRequest() returns 1 is a signed receipt request is
52 found and decoded. It returns 0 if a signed receipt request is not
53 present and -1 if it is present but malformed.
54
56 ERR_get_error(3), CMS_sign(3), CMS_sign_receipt(3), CMS_verify(3)
57 CMS_verify_receipt(3)
58
60 CMS_ReceiptRequest_create0(), CMS_add1_ReceiptRequest(),
61 CMS_get1_ReceiptRequest() and CMS_ReceiptRequest_get0_values() were
62 added to OpenSSL 0.9.8
63
64
65
661.0.0e 2008-04-10 CMS_get1_ReceiptRequest(3)