Lines Matching refs:end
382 const unsigned char *end, in x509_get_version() argument
388 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_version()
400 end = *p + len; in x509_get_version()
402 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_get_version()
405 if( *p != end ) in x509_get_version()
418 const unsigned char *end, in x509_get_dates() argument
425 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_dates()
429 end = *p + len; in x509_get_dates()
431 if( ( ret = mbedtls_x509_get_time( p, end, from ) ) != 0 ) in x509_get_dates()
434 if( ( ret = mbedtls_x509_get_time( p, end, to ) ) != 0 ) in x509_get_dates()
437 if( *p != end ) in x509_get_dates()
448 const unsigned char *end, in x509_get_uid() argument
453 if( *p == end ) in x509_get_uid()
458 if( ( ret = mbedtls_asn1_get_tag( p, end, &uid->len, in x509_get_uid()
474 const unsigned char *end, in x509_get_basic_constraints() argument
489 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_basic_constraints()
493 if( *p == end ) in x509_get_basic_constraints()
496 if( ( ret = mbedtls_asn1_get_bool( p, end, ca_istrue ) ) != 0 ) in x509_get_basic_constraints()
499 ret = mbedtls_asn1_get_int( p, end, ca_istrue ); in x509_get_basic_constraints()
508 if( *p == end ) in x509_get_basic_constraints()
511 if( ( ret = mbedtls_asn1_get_int( p, end, max_pathlen ) ) != 0 ) in x509_get_basic_constraints()
514 if( *p != end ) in x509_get_basic_constraints()
530 const unsigned char *end, in x509_get_ns_cert_type() argument
536 if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 ) in x509_get_ns_cert_type()
549 const unsigned char *end, in x509_get_key_usage() argument
556 if( ( ret = mbedtls_asn1_get_bitstring( p, end, &bs ) ) != 0 ) in x509_get_key_usage()
579 const unsigned char *end, in x509_get_ext_key_usage() argument
584 if( ( ret = mbedtls_asn1_get_sequence_of( p, end, ext_key_usage, MBEDTLS_ASN1_OID ) ) != 0 ) in x509_get_ext_key_usage()
623 const unsigned char *end, in x509_get_subject_alt_name() argument
633 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_subject_alt_name()
637 if( *p + len != end ) in x509_get_subject_alt_name()
641 while( *p < end ) in x509_get_subject_alt_name()
648 if( ( ret = mbedtls_asn1_get_len( p, end, &tag_len ) ) != 0 ) in x509_get_subject_alt_name()
707 if( *p != end ) in x509_get_subject_alt_name()
764 const unsigned char *end, in x509_get_certificate_policies() argument
773 ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_certificate_policies()
778 if( *p + len != end ) in x509_get_certificate_policies()
789 while( *p < end ) in x509_get_certificate_policies()
797 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_certificate_policies()
869 if( *p != end ) in x509_get_certificate_policies()
881 const unsigned char *end, in x509_get_crt_ext() argument
890 if( *p == end ) in x509_get_crt_ext()
893 if( ( ret = mbedtls_x509_get_ext( p, end, &crt->v3_ext, 3 ) ) != 0 ) in x509_get_crt_ext()
896 end = crt->v3_ext.p + crt->v3_ext.len; in x509_get_crt_ext()
897 while( *p < end ) in x509_get_crt_ext()
909 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_crt_ext()
1058 if( *p != end ) in x509_get_crt_ext()
1077 unsigned char *p, *end, *crt_end; in x509_crt_parse_der_core() local
1093 end = p + len; in x509_crt_parse_der_core()
1101 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_crt_parse_der_core()
1108 end = crt_end = p + len; in x509_crt_parse_der_core()
1121 end = crt_end = p + len; in x509_crt_parse_der_core()
1134 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_crt_parse_der_core()
1141 end = p + len; in x509_crt_parse_der_core()
1142 crt->tbs.len = end - crt->tbs.p; in x509_crt_parse_der_core()
1151 if( ( ret = x509_get_version( &p, end, &crt->version ) ) != 0 || in x509_crt_parse_der_core()
1152 ( ret = mbedtls_x509_get_serial( &p, end, &crt->serial ) ) != 0 || in x509_crt_parse_der_core()
1153 ( ret = mbedtls_x509_get_alg( &p, end, &crt->sig_oid, in x509_crt_parse_der_core()
1181 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_crt_parse_der_core()
1202 if( ( ret = x509_get_dates( &p, end, &crt->valid_from, in x509_crt_parse_der_core()
1214 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_crt_parse_der_core()
1233 if( ( ret = mbedtls_pk_parse_subpubkey( &p, end, &crt->pk ) ) != 0 ) in x509_crt_parse_der_core()
1250 ret = x509_get_uid( &p, end, &crt->issuer_id, 1 ); in x509_crt_parse_der_core()
1260 ret = x509_get_uid( &p, end, &crt->subject_id, 2 ); in x509_crt_parse_der_core()
1272 ret = x509_get_crt_ext( &p, end, crt, cb, p_ctx ); in x509_crt_parse_der_core()
1280 if( p != end ) in x509_crt_parse_der_core()
1287 end = crt_end; in x509_crt_parse_der_core()
1296 if( ( ret = mbedtls_x509_get_alg( &p, end, &sig_oid2, &sig_params2 ) ) != 0 ) in x509_crt_parse_der_core()
1313 if( ( ret = mbedtls_x509_get_sig( &p, end, &crt->sig ) ) != 0 ) in x509_crt_parse_der_core()
1319 if( p != end ) in x509_crt_parse_der_core()
1691 const unsigned char *end = p + subject_alt_name->len; in x509_get_other_name() local
1704 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_get_other_name()
1720 if( p + len >= end ) in x509_get_other_name()
1727 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_get_other_name()
1731 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_get_other_name()
1735 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, MBEDTLS_ASN1_OID ) ) != 0 ) in x509_get_other_name()
1742 if( p + len >= end ) in x509_get_other_name()
1749 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in x509_get_other_name()
1757 if( p != end ) in x509_get_other_name()