88 CMS_ReceiptRequest_free(rr);
94 STACK_OF(GENERAL_NAMES) *receiptList,
99 rr = CMS_ReceiptRequest_new();
114 rr->receiptsTo = receiptsTo;
118 rr->receiptsFrom->type = 1;
119 rr->receiptsFrom->d.receiptList = receiptList;
123 rr->receiptsFrom->type = 0;
124 rr->receiptsFrom->d.allOrFirstTier = allorfirst;
134 CMS_ReceiptRequest_free(rr);
142 unsigned char *rrder = NULL;
145 rrderlen = i2d_CMS_ReceiptRequest(rr, &rrder);
173 *pcid = rr->signedContentIdentifier;
174 if (rr->receiptsFrom->type == 0)
177 *pallorfirst = (int)rr->receiptsFrom->d.allOrFirstTier;
186 *plist = rr->receiptsFrom->d.receiptList;
189 *prto = rr->receiptsTo;
195 unsigned char *dig,
unsigned int *diglen)
202 si->signedAttrs, dig, diglen))
213 if (!cms_msgSigDigest(src, dig, &diglen))
242 osis = CMS_get0_SignerInfos(req_cms);
243 sis = CMS_get0_SignerInfos(cms);
262 if (!pcont || !*pcont)
306 if (!cms_msgSigDigest(osi, dig, &diglen))
312 if (diglen != (
unsigned int)msig->
length)
319 if (memcmp(dig, msig->
data, diglen))
365 CMS_ReceiptRequest_free(rr);
414 CMS_ReceiptRequest_free(rr);