Lines Matching refs:cur
451 mbedtls_asn1_sequence *cur = subject_alt_name; in x509_get_subject_alt_name() local
485 if( cur->buf.p != NULL ) in x509_get_subject_alt_name()
487 if( cur->next != NULL ) in x509_get_subject_alt_name()
490 cur->next = mbedtls_calloc( 1, sizeof( mbedtls_asn1_sequence ) ); in x509_get_subject_alt_name()
492 if( cur->next == NULL ) in x509_get_subject_alt_name()
496 cur = cur->next; in x509_get_subject_alt_name()
499 buf = &(cur->buf); in x509_get_subject_alt_name()
507 cur->next = NULL; in x509_get_subject_alt_name()
1228 const mbedtls_x509_sequence *cur = subject_alt_name; in x509_info_subject_alt_name() local
1232 while( cur != NULL ) in x509_info_subject_alt_name()
1234 if( cur->buf.len + sep_len >= n ) in x509_info_subject_alt_name()
1240 n -= cur->buf.len + sep_len; in x509_info_subject_alt_name()
1243 for( i = 0; i < cur->buf.len; i++ ) in x509_info_subject_alt_name()
1244 *p++ = cur->buf.p[i]; in x509_info_subject_alt_name()
1249 cur = cur->next; in x509_info_subject_alt_name()
1329 const mbedtls_x509_sequence *cur = extended_key_usage; in x509_info_ext_key_usage() local
1332 while( cur != NULL ) in x509_info_ext_key_usage()
1334 if( mbedtls_oid_get_extended_key_usage( &cur->buf, &desc ) != 0 ) in x509_info_ext_key_usage()
1342 cur = cur->next; in x509_info_ext_key_usage()
1521 const struct x509_crt_verify_string *cur; in mbedtls_x509_crt_verify_info() local
1525 for( cur = x509_crt_verify_strings; cur->string != NULL ; cur++ ) in mbedtls_x509_crt_verify_info()
1527 if( ( flags & cur->code ) == 0 ) in mbedtls_x509_crt_verify_info()
1530 ret = mbedtls_snprintf( p, n, "%s%s\n", prefix, cur->string ); in mbedtls_x509_crt_verify_info()
1532 flags ^= cur->code; in mbedtls_x509_crt_verify_info()
1575 const mbedtls_x509_sequence *cur; in mbedtls_x509_crt_check_extended_key_usage() local
1584 for( cur = &crt->ext_key_usage; cur != NULL; cur = cur->next ) in mbedtls_x509_crt_check_extended_key_usage()
1586 const mbedtls_x509_buf *cur_oid = &cur->buf; in mbedtls_x509_crt_check_extended_key_usage()
1608 const mbedtls_x509_crl_entry *cur = &crl->entry; in mbedtls_x509_crt_is_revoked() local
1610 while( cur != NULL && cur->serial.len != 0 ) in mbedtls_x509_crt_is_revoked()
1612 if( crt->serial.len == cur->serial.len && in mbedtls_x509_crt_is_revoked()
1613 memcmp( crt->serial.p, cur->serial.p, crt->serial.len ) == 0 ) in mbedtls_x509_crt_is_revoked()
1615 if( mbedtls_x509_time_is_past( &cur->revocation_date ) ) in mbedtls_x509_crt_is_revoked()
1619 cur = cur->next; in mbedtls_x509_crt_is_revoked()
2191 mbedtls_x509_sequence *cur = NULL; in mbedtls_x509_crt_verify_with_profile() local
2206 cur = &crt->subject_alt_names; in mbedtls_x509_crt_verify_with_profile()
2208 while( cur != NULL ) in mbedtls_x509_crt_verify_with_profile()
2210 if( cur->buf.len == cn_len && in mbedtls_x509_crt_verify_with_profile()
2211 x509_memcasecmp( cn, cur->buf.p, cn_len ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
2214 if( cur->buf.len > 2 && in mbedtls_x509_crt_verify_with_profile()
2215 memcmp( cur->buf.p, "*.", 2 ) == 0 && in mbedtls_x509_crt_verify_with_profile()
2216 x509_check_wildcard( cn, &cur->buf ) == 0 ) in mbedtls_x509_crt_verify_with_profile()
2221 cur = cur->next; in mbedtls_x509_crt_verify_with_profile()
2224 if( cur == NULL ) in mbedtls_x509_crt_verify_with_profile()