Lines Matching defs:pos
117 const u8 *pos, *end;
149 pos = hdr.payload;
161 if (x509_parse_algorithm_identifier(pos, end - pos, &alg, &pos))
165 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
177 pos = hdr.payload + hdr.length;
192 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
203 pos = hdr.payload + hdr.length;
216 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
240 pos = end;
244 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
255 pos = hdr.payload + hdr.length;
259 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
267 pos = hdr.payload + hdr.length;
275 if (pos < end) {
276 if (asn1_get_next(pos, end - pos, &hdr) < 0)
292 pos = next;
301 if (pos < end) {
303 pos, end - pos);
324 const u8 *pos, *end;
327 pos = resp;
329 while (pos < end) {
331 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
343 pos = hdr.payload + hdr.length;
358 const u8 *pos, *end;
392 pos = hdr.payload;
396 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
406 resp_data_signed = pos;
407 pos = hdr.payload + hdr.length;
408 resp_data_signed_len = pos - resp_data_signed;
411 if (x509_parse_algorithm_identifier(pos, end - pos, &alg, &pos))
415 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
425 pos = hdr.payload;
426 if (*pos) {
427 wpa_printf(MSG_DEBUG, "OCSP: BITSTRING - %d unused bits", *pos);
434 sign_value = pos + 1;
436 pos += hdr.length;
440 if (pos < end) {
441 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
451 pos = hdr.payload;
453 while (pos < end) {
456 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
474 pos = hdr.payload + hdr.length;
486 pos = resp_data;
488 wpa_hexdump(MSG_MSGDUMP, "OCSP: ResponseData", pos, end - pos);
494 if (asn1_get_next(pos, end - pos, &hdr) < 0 &&
497 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
514 pos = hdr.payload + hdr.length;
525 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
535 if (x509_parse_name(hdr.payload, hdr.length, &name, &pos) < 0)
558 pos = hdr.payload + hdr.length;
566 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
576 pos = hdr.payload + hdr.length;
579 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
590 pos = hdr.payload + hdr.length;
592 if (pos < end) {
595 pos, end - pos);
683 const u8 *pos, *end;
708 pos = hdr.payload;
712 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
723 pos = hdr.payload + hdr.length;
730 if (pos == end)
733 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||
756 pos = hdr.payload;
760 if (asn1_get_oid(pos, end - pos, &oid, &pos)) {
773 if (asn1_get_next(pos, end - pos, &hdr) < 0 ||