/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | ssl_cache.c | 65 mbedtls_ssl_cache_entry *cur, *entry; in mbedtls_ssl_cache_get() local 72 cur = cache->chain; in mbedtls_ssl_cache_get() 75 while( cur != NULL ) in mbedtls_ssl_cache_get() 77 entry = cur; in mbedtls_ssl_cache_get() 78 cur = cur->next; in mbedtls_ssl_cache_get() 145 mbedtls_ssl_cache_entry *cur, *prv; in mbedtls_ssl_cache_set() local 153 cur = cache->chain; in mbedtls_ssl_cache_set() 156 while( cur != NULL ) in mbedtls_ssl_cache_set() 162 (int) ( t - cur->timestamp ) > cache->timeout ) in mbedtls_ssl_cache_set() 164 cur->timestamp = t; in mbedtls_ssl_cache_set() [all …]
|
D | memory_buffer_alloc.c | 118 memory_header *cur = heap.first; in debug_chain() local 121 while( cur != NULL ) in debug_chain() 123 debug_header( cur ); in debug_chain() 124 cur = cur->next; in debug_chain() 128 cur = heap.first_free; in debug_chain() 130 while( cur != NULL ) in debug_chain() 132 debug_header( cur ); in debug_chain() 133 cur = cur->next_free; in debug_chain() 185 memory_header *prv = heap.first, *cur = heap.first->next; in verify_chain() local 205 while( cur != NULL ) in verify_chain() [all …]
|
D | asn1write.c | 336 mbedtls_asn1_named_data *cur; in mbedtls_asn1_store_named_data() local 338 if( ( cur = mbedtls_asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data() 342 cur = (mbedtls_asn1_named_data*)mbedtls_calloc( 1, in mbedtls_asn1_store_named_data() 344 if( cur == NULL ) in mbedtls_asn1_store_named_data() 347 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data() 348 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data() 349 if( cur->oid.p == NULL ) in mbedtls_asn1_store_named_data() 351 mbedtls_free( cur ); in mbedtls_asn1_store_named_data() 355 memcpy( cur->oid.p, oid, oid_len ); in mbedtls_asn1_store_named_data() 357 cur->val.len = val_len; in mbedtls_asn1_store_named_data() [all …]
|
D | x509_create.c | 79 const x509_attr_descriptor_t *cur; in x509_at_oid_from_name() local 81 for( cur = x509_attrs; cur->name != NULL; cur++ ) in x509_at_oid_from_name() 82 if( cur->name_len == name_len && in x509_at_oid_from_name() 83 strncmp( cur->name, name, name_len ) == 0 ) in x509_at_oid_from_name() 86 return( cur->oid ); in x509_at_oid_from_name() 169 mbedtls_asn1_named_data *cur; in mbedtls_x509_set_extension() local 171 if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len, in mbedtls_x509_set_extension() 177 cur->val.p[0] = critical; in mbedtls_x509_set_extension() 178 memcpy( cur->val.p + 1, val, val_len ); in mbedtls_x509_set_extension() 238 mbedtls_asn1_named_data *cur = first; in mbedtls_x509_write_names() local [all …]
|
D | asn1parse.c | 243 mbedtls_asn1_sequence *cur, in mbedtls_asn1_get_sequence_of() argument 260 buf = &(cur->buf); in mbedtls_asn1_get_sequence_of() 272 cur->next = (mbedtls_asn1_sequence*)mbedtls_calloc( 1, in mbedtls_asn1_get_sequence_of() 275 if( cur->next == NULL ) in mbedtls_asn1_get_sequence_of() 278 cur = cur->next; in mbedtls_asn1_get_sequence_of() 283 cur->next = NULL; in mbedtls_asn1_get_sequence_of() 353 void mbedtls_asn1_free_named_data( mbedtls_asn1_named_data *cur ) in mbedtls_asn1_free_named_data() argument 355 if( cur == NULL ) in mbedtls_asn1_free_named_data() 358 mbedtls_free( cur->oid.p ); in mbedtls_asn1_free_named_data() 359 mbedtls_free( cur->val.p ); in mbedtls_asn1_free_named_data() [all …]
|
D | net_sockets.c | 139 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_connect() local 155 for( cur = addr_list; cur != NULL; cur = cur->ai_next ) in mbedtls_net_connect() 157 ctx->fd = (int) socket( cur->ai_family, cur->ai_socktype, in mbedtls_net_connect() 158 cur->ai_protocol ); in mbedtls_net_connect() 165 if( connect( ctx->fd, cur->ai_addr, MSVC_INT_CAST cur->ai_addrlen ) == 0 ) in mbedtls_net_connect() 186 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_bind() local 204 for( cur = addr_list; cur != NULL; cur = cur->ai_next ) in mbedtls_net_bind() 206 ctx->fd = (int) socket( cur->ai_family, cur->ai_socktype, in mbedtls_net_bind() 207 cur->ai_protocol ); in mbedtls_net_bind() 223 if( bind( ctx->fd, cur->ai_addr, MSVC_INT_CAST cur->ai_addrlen ) != 0 ) in mbedtls_net_bind()
|
D | oid.c | 61 const mbedtls_oid_descriptor_t *cur = (const mbedtls_oid_descriptor_t *) p; \ 63 while( cur->asn1 != NULL ) { \ 64 if( cur->asn1_len == oid->len && \ 65 memcmp( cur->asn1, oid->p, oid->len ) == 0 ) { \ 69 cur = (const mbedtls_oid_descriptor_t *) p; \ 122 const TYPE_T *cur = LIST; \ 123 while( cur->descriptor.asn1 != NULL ) { \ 124 if( cur->ATTR1 == ATTR1 ) { \ 125 *oid = cur->descriptor.asn1; \ 126 *olen = cur->descriptor.asn1_len; \ [all …]
|
D | x509_crt.c | 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() [all …]
|
D | x509.c | 358 mbedtls_x509_name *cur ) in x509_get_attr_type_value() argument 373 oid = &cur->oid; in x509_get_attr_type_value() 393 val = &cur->val; in x509_get_attr_type_value() 402 cur->next = NULL; in x509_get_attr_type_value() 431 mbedtls_x509_name *cur ) in mbedtls_x509_get_name() argument 451 if( ( ret = x509_get_attr_type_value( p, end_set, cur ) ) != 0 ) in mbedtls_x509_get_name() 458 cur->next_merged = 1; in mbedtls_x509_get_name() 460 cur->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_name ) ); in mbedtls_x509_get_name() 462 if( cur->next == NULL ) in mbedtls_x509_get_name() 465 cur = cur->next; in mbedtls_x509_get_name() [all …]
|
D | debug.c | 320 const char *start, *cur; in debug_print_line_by_line() local 323 for( cur = text; *cur != '\0'; cur++ ) in debug_print_line_by_line() 325 if( *cur == '\n' ) in debug_print_line_by_line() 327 size_t len = cur - start + 1; in debug_print_line_by_line() 336 start = cur + 1; in debug_print_line_by_line()
|
D | ssl_ciphersuites.c | 1743 const mbedtls_ssl_ciphersuite_t *cur = ciphersuite_definitions; in mbedtls_ssl_ciphersuite_from_string() local 1748 while( cur->id != 0 ) in mbedtls_ssl_ciphersuite_from_string() 1750 if( 0 == strcmp( cur->name, ciphersuite_name ) ) in mbedtls_ssl_ciphersuite_from_string() 1751 return( cur ); in mbedtls_ssl_ciphersuite_from_string() 1753 cur++; in mbedtls_ssl_ciphersuite_from_string() 1761 const mbedtls_ssl_ciphersuite_t *cur = ciphersuite_definitions; in mbedtls_ssl_ciphersuite_from_id() local 1763 while( cur->id != 0 ) in mbedtls_ssl_ciphersuite_from_id() 1765 if( cur->id == ciphersuite ) in mbedtls_ssl_ciphersuite_from_id() 1766 return( cur ); in mbedtls_ssl_ciphersuite_from_id() 1768 cur++; in mbedtls_ssl_ciphersuite_from_id() [all …]
|
D | ecp_curves.c | 877 #define LOAD32 cur = A( i ); 883 #define STORE32 N->p[i] = cur; 892 N->p[i/2] |= ((mbedtls_mpi_uint) cur) << 32; \ 895 N->p[i/2] |= (mbedtls_mpi_uint) cur; \ 915 #define ADD( j ) add32( &cur, A( j ), &c ); 916 #define SUB( j ) sub32( &cur, A( j ), &c ); 925 uint32_t cur; \ 942 sub32( &cur, -cc, &c ); \ 944 add32( &cur, cc, &c ); \ 948 cur = c > 0 ? c : 0; STORE32; \ [all …]
|
D | ssl_srv.c | 609 mbedtls_ssl_key_cert *cur, *list, *fallback = NULL; in ssl_pick_cert() local 631 for( cur = list; cur != NULL; cur = cur->next ) in ssl_pick_cert() 634 cur->cert ); in ssl_pick_cert() 636 if( ! mbedtls_pk_can_do( cur->key, pk_alg ) ) in ssl_pick_cert() 650 if( mbedtls_ssl_check_cert_usage( cur->cert, ciphersuite_info, in ssl_pick_cert() 660 ssl_check_key_curve( cur->key, ssl->handshake->curves ) != 0 ) in ssl_pick_cert() 673 cur->cert->sig_md != MBEDTLS_MD_SHA1 ) in ssl_pick_cert() 676 fallback = cur; in ssl_pick_cert() 688 if( cur == NULL ) in ssl_pick_cert() 689 cur = fallback; in ssl_pick_cert() [all …]
|
D | ssl_tls.c | 2502 mbedtls_ssl_flight_item *cur = ssl->handshake->flight; in ssl_flight_append() local 2503 while( cur->next != NULL ) in ssl_flight_append() 2504 cur = cur->next; in ssl_flight_append() 2505 cur->next = msg; in ssl_flight_append() 2516 mbedtls_ssl_flight_item *cur = flight; in ssl_flight_free() local 2519 while( cur != NULL ) in ssl_flight_free() 2521 next = cur->next; in ssl_flight_free() 2523 mbedtls_free( cur->p ); in ssl_flight_free() 2524 mbedtls_free( cur ); in ssl_flight_free() 2526 cur = next; in ssl_flight_free() [all …]
|
D | ssl_cli.c | 611 const char **cur; local 622 for( cur = ssl->conf->alpn_list; *cur != NULL; cur++ ) 623 alpnlen += (unsigned char)( strlen( *cur ) & 0xFF ) + 1; 645 for( cur = ssl->conf->alpn_list; *cur != NULL; cur++ ) 647 *p = (unsigned char)( strlen( *cur ) & 0xFF ); 648 memcpy( p + 1, *cur, *p );
|
D | ecp.c | 1198 mbedtls_ecp_point *cur, *TT[COMB_MAX_PRE - 1]; in ecp_precompute_comb() local 1209 cur = T + i; in ecp_precompute_comb() 1210 MBEDTLS_MPI_CHK( mbedtls_ecp_copy( cur, T + ( i >> 1 ) ) ); in ecp_precompute_comb() 1212 MBEDTLS_MPI_CHK( ecp_double_jac( grp, cur, cur ) ); in ecp_precompute_comb() 1214 TT[k++] = cur; in ecp_precompute_comb()
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/test/ |
D | udp_proxy.c | 381 const unsigned char *cur = p->buf; in update_dropped() local 382 size_t len = ( ( cur[11] << 8 ) | cur[12] ) + 13; in update_dropped() 390 while( cur < end ) in update_dropped() 392 len = ( ( cur[11] << 8 ) | cur[12] ) + 13; in update_dropped() 397 cur += len; in update_dropped() 406 packet cur; in handle_message() local 410 if( ( ret = mbedtls_net_recv( src, cur.buf, sizeof( cur.buf ) ) ) <= 0 ) in handle_message() 416 cur.len = ret; in handle_message() 417 cur.type = msg_type( cur.buf, cur.len ); in handle_message() 418 cur.way = way; in handle_message() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/ |
D | ssl_server2.c | 498 sni_entry *cur = head, *next; in sni_free() local 500 while( cur != NULL ) in sni_free() 502 mbedtls_x509_crt_free( cur->cert ); in sni_free() 503 mbedtls_free( cur->cert ); in sni_free() 505 mbedtls_pk_free( cur->key ); in sni_free() 506 mbedtls_free( cur->key ); in sni_free() 508 mbedtls_x509_crt_free( cur->ca ); in sni_free() 509 mbedtls_free( cur->ca ); in sni_free() 511 mbedtls_x509_crl_free( cur->crl ); in sni_free() 512 mbedtls_free( cur->crl ); in sni_free() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/x509/ |
D | cert_app.c | 288 mbedtls_x509_crt *cur = &crt; in main() local 318 while( cur != NULL ) in main() 322 cur ); in main() 332 cur = cur->next; in main()
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_x509parse.function | 455 mbedtls_x509_crt chain, *cur; 463 for( i = 0, cur = &chain; cur != NULL; cur = cur->next ) 464 if( cur->raw.p != NULL )
|
D | main_test.function | 158 char *cur = buf; 161 params[cnt++] = cur; 175 cur = p + 1; 176 params[cnt++] = cur;
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | asn1.h | 259 mbedtls_asn1_sequence *cur,
|
D | x509.h | 282 mbedtls_x509_name *cur );
|
/net-tools-3.6.0/mbedtls-2.4.0/scripts/data_files/ |
D | vs6-app-template.dsp | 98 # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|