Lines Matching refs:end

78 	const unsigned char *end;  in get_ext()  local
86 end = v3_ext.p + v3_ext.len; in get_ext()
88 mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in get_ext()
91 while (p < end) { in get_ext()
95 mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in get_ext()
101 mbedtls_asn1_get_tag(&p, end, &extn_oid.len, MBEDTLS_ASN1_OID); in get_ext()
147 unsigned char *p, *end, *crt_end; in cert_parse() local
152 end = p + len; in cert_parse()
160 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
166 if (len > (size_t)(end - p)) { in cert_parse()
175 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
180 end = p + len; in cert_parse()
181 tbs.len = end - tbs.p; in cert_parse()
186 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
197 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_INTEGER); in cert_parse()
207 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
212 if ((end - p) < 1) { in cert_parse()
221 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
234 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
244 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
255 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
266 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
280 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
294 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
305 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
315 while (p < end) { in cert_parse()
316 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
324 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_OID); in cert_parse()
331 ret = mbedtls_asn1_get_bool(&p, end, &is_critical); in cert_parse()
337 ret = mbedtls_asn1_get_tag(&p, end, &len, in cert_parse()
345 if (p != end) { in cert_parse()
349 end = crt_end; in cert_parse()
358 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
363 if ((end - p) < 1) { in cert_parse()
382 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_BIT_STRING); in cert_parse()
390 if (p != end) { in cert_parse()