Lines Matching refs:end

210                              const unsigned char *end,  in x509_get_version()  argument
216 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_version()
228 end = *p + len; in x509_get_version()
230 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_get_version()
233 if( *p != end ) in x509_get_version()
246 const unsigned char *end, in x509_get_dates() argument
253 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_dates()
257 end = *p + len; in x509_get_dates()
259 if( ( ret = mbedtls_x509_get_time( p, end, from ) ) != 0 ) in x509_get_dates()
262 if( ( ret = mbedtls_x509_get_time( p, end, to ) ) != 0 ) in x509_get_dates()
265 if( *p != end ) in x509_get_dates()
276 const unsigned char *end, in x509_get_uid() argument
281 if( *p == end ) in x509_get_uid()
286 if( ( ret = mbedtls_asn1_get_tag( p, end, &uid->len, in x509_get_uid()
302 const unsigned char *end, in x509_get_basic_constraints() argument
317 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_basic_constraints()
321 if( *p == end ) in x509_get_basic_constraints()
324 if( ( ret = mbedtls_asn1_get_bool( p, end, ca_istrue ) ) != 0 ) in x509_get_basic_constraints()
327 ret = mbedtls_asn1_get_int( p, end, ca_istrue ); in x509_get_basic_constraints()
336 if( *p == end ) in x509_get_basic_constraints()
339 if( ( ret = mbedtls_asn1_get_int( p, end, max_pathlen ) ) != 0 ) in x509_get_basic_constraints()
342 if( *p != end ) in x509_get_basic_constraints()
352 const unsigned char *end, in x509_get_ns_cert_type() argument
358 if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 ) in x509_get_ns_cert_type()
371 const unsigned char *end, in x509_get_key_usage() argument
378 if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 ) in x509_get_key_usage()
401 const unsigned char *end, in x509_get_ext_key_usage() argument
406 if( ( ret = mbedtls_asn1_get_sequence_of( p, end, ext_key_usage, MBEDTLS_ASN1_OID ) ) != 0 ) in x509_get_ext_key_usage()
444 const unsigned char *end, in x509_get_subject_alt_name() argument
454 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_subject_alt_name()
458 if( *p + len != end ) in x509_get_subject_alt_name()
462 while( *p < end ) in x509_get_subject_alt_name()
464 if( ( end - *p ) < 1 ) in x509_get_subject_alt_name()
470 if( ( ret = mbedtls_asn1_get_len( p, end, &tag_len ) ) != 0 ) in x509_get_subject_alt_name()
509 if( *p != end ) in x509_get_subject_alt_name()
521 const unsigned char *end, in x509_get_crt_ext() argument
528 if( ( ret = mbedtls_x509_get_ext( p, end, &crt->v3_ext, 3 ) ) != 0 ) in x509_get_crt_ext()
536 while( *p < end ) in x509_get_crt_ext()
548 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_crt_ext()
557 if( ( ret = mbedtls_asn1_get_tag( p, end, &extn_oid.len, MBEDTLS_ASN1_OID ) ) != 0 ) in x509_get_crt_ext()
563 if( ( end - *p ) < 1 ) in x509_get_crt_ext()
652 if( *p != end ) in x509_get_crt_ext()
667 unsigned char *p, *end, *crt_end; in x509_crt_parse_der_core() local
683 end = p + len; in x509_crt_parse_der_core()
691 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_crt_parse_der_core()
698 if( len > (size_t) ( end - p ) ) in x509_crt_parse_der_core()
716 end = crt_end = p + len; in x509_crt_parse_der_core()
723 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_crt_parse_der_core()
730 end = p + len; in x509_crt_parse_der_core()
731 crt->tbs.len = end - crt->tbs.p; in x509_crt_parse_der_core()
740 if( ( ret = x509_get_version( &p, end, &crt->version ) ) != 0 || in x509_crt_parse_der_core()
741 ( ret = mbedtls_x509_get_serial( &p, end, &crt->serial ) ) != 0 || in x509_crt_parse_der_core()
742 ( ret = mbedtls_x509_get_alg( &p, end, &crt->sig_oid, in x509_crt_parse_der_core()
770 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_crt_parse_der_core()
791 if( ( ret = x509_get_dates( &p, end, &crt->valid_from, in x509_crt_parse_der_core()
803 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_crt_parse_der_core()
821 if( ( ret = mbedtls_pk_parse_subpubkey( &p, end, &crt->pk ) ) != 0 ) in x509_crt_parse_der_core()
837 ret = x509_get_uid( &p, end, &crt->issuer_id, 1 ); in x509_crt_parse_der_core()
847 ret = x509_get_uid( &p, end, &crt->subject_id, 2 ); in x509_crt_parse_der_core()
859 ret = x509_get_crt_ext( &p, end, crt ); in x509_crt_parse_der_core()
867 if( p != end ) in x509_crt_parse_der_core()
874 end = crt_end; in x509_crt_parse_der_core()
883 if( ( ret = mbedtls_x509_get_alg( &p, end, &sig_oid2, &sig_params2 ) ) != 0 ) in x509_crt_parse_der_core()
899 if( ( ret = mbedtls_x509_get_sig( &p, end, &crt->sig ) ) != 0 ) in x509_crt_parse_der_core()
905 if( p != end ) in x509_crt_parse_der_core()