Home | History | Annotate | Download | only in pkcs7

Lines Matching refs:CBS

32 int PKCS7_get_certificates(STACK_OF(X509) *out_certs, CBS *cbs) {
37 !PKCS7_get_raw_certificates(raw, cbs, NULL)) {
65 int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs) {
66 CBS signed_data, crls;
72 if (!pkcs7_parse_header(&der_bytes, &signed_data, cbs) ||
89 CBS crl_data;
143 CBS cbs;
144 CBS_init(&cbs, data, len);
145 ret = PKCS7_get_certificates(out_certs, &cbs);
165 CBS cbs;
166 CBS_init(&cbs, data, len);
167 ret = PKCS7_get_CRLs(out_crls, &cbs);
232 static PKCS7 *pkcs7_new(CBS *cbs) {
245 CBS copy = *cbs, copy2 = *cbs;
248 !PKCS7_get_CRLs(ret->d.sign->crl, cbs)) {
262 ret->ber_len = CBS_len(&copy2) - CBS_len(cbs);
277 CBS cbs;
278 CBS_init(&cbs, *inp, len);
279 PKCS7 *ret = pkcs7_new(&cbs);
283 *inp = CBS_data(&cbs);
300 CBS cbs;
301 CBS_init(&cbs, data, len);
302 PKCS7 *ret = pkcs7_new(&cbs);
380 CBS cbs;
381 CBS_init(&cbs, der, len);
382 PKCS7 *ret = pkcs7_new(&cbs);