Lines Matching refs:end
78 const unsigned char *end, in x509_crl_get_version() argument
83 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_crl_get_version()
101 const unsigned char *end, in x509_get_crl_ext() argument
108 if( ( ret = mbedtls_x509_get_ext( p, end, ext, 0) ) != 0 ) in x509_get_crl_ext()
116 while( *p < end ) in x509_get_crl_ext()
118 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_crl_ext()
125 if( *p != end ) in x509_get_crl_ext()
136 const unsigned char *end, in x509_get_crl_entry_ext() argument
143 if( end <= *p ) in x509_get_crl_entry_ext()
153 if( ( ret = mbedtls_asn1_get_tag( p, end, &ext->len, in x509_get_crl_entry_ext()
164 end = *p + ext->len; in x509_get_crl_entry_ext()
166 if( end != *p + ext->len ) in x509_get_crl_entry_ext()
170 while( *p < end ) in x509_get_crl_entry_ext()
172 if( ( ret = mbedtls_asn1_get_tag( p, end, &len, in x509_get_crl_entry_ext()
179 if( *p != end ) in x509_get_crl_entry_ext()
190 const unsigned char *end, in x509_get_entries() argument
197 if( *p == end ) in x509_get_entries()
200 if( ( ret = mbedtls_asn1_get_tag( p, end, &entry_len, in x509_get_entries()
209 end = *p + entry_len; in x509_get_entries()
211 while( *p < end ) in x509_get_entries()
216 if( ( ret = mbedtls_asn1_get_tag( p, end, &len2, in x509_get_entries()
238 if( *p < end ) in x509_get_entries()
260 unsigned char *p, *end; in mbedtls_x509_crl_parse_der() local
305 end = p + buflen; in mbedtls_x509_crl_parse_der()
313 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_crl_parse_der()
320 if( len != (size_t) ( end - p ) ) in mbedtls_x509_crl_parse_der()
332 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_crl_parse_der()
339 end = p + len; in mbedtls_x509_crl_parse_der()
340 crl->tbs.len = end - crl->tbs.p; in mbedtls_x509_crl_parse_der()
348 if( ( ret = x509_crl_get_version( &p, end, &crl->version ) ) != 0 || in mbedtls_x509_crl_parse_der()
349 ( ret = mbedtls_x509_get_alg( &p, end, &crl->sig_oid, &sig_params1 ) ) != 0 ) in mbedtls_x509_crl_parse_der()
376 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_crl_parse_der()
395 if( ( ret = mbedtls_x509_get_time( &p, end, &crl->this_update ) ) != 0 ) in mbedtls_x509_crl_parse_der()
401 if( ( ret = mbedtls_x509_get_time( &p, end, &crl->next_update ) ) != 0 ) in mbedtls_x509_crl_parse_der()
421 if( ( ret = x509_get_entries( &p, end, &crl->entry ) ) != 0 ) in mbedtls_x509_crl_parse_der()
433 ret = x509_get_crl_ext( &p, end, &crl->crl_ext ); in mbedtls_x509_crl_parse_der()
442 if( p != end ) in mbedtls_x509_crl_parse_der()
449 end = crl->raw.p + crl->raw.len; in mbedtls_x509_crl_parse_der()
455 if( ( ret = mbedtls_x509_get_alg( &p, end, &sig_oid2, &sig_params2 ) ) != 0 ) in mbedtls_x509_crl_parse_der()
471 if( ( ret = mbedtls_x509_get_sig( &p, end, &crl->sig ) ) != 0 ) in mbedtls_x509_crl_parse_der()
477 if( p != end ) in mbedtls_x509_crl_parse_der()