/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_debug.function | 54 mbedtls_ssl_config conf; 58 mbedtls_ssl_config_init( &conf ); 62 TEST_ASSERT( mbedtls_ssl_setup( &ssl, &conf ) == 0 ); 65 mbedtls_ssl_conf_dbg( &conf, string_debug, &buffer); 74 mbedtls_ssl_config_free( &conf ); 83 mbedtls_ssl_config conf; 87 mbedtls_ssl_config_init( &conf ); 91 TEST_ASSERT( mbedtls_ssl_setup( &ssl, &conf ) == 0 ); 93 mbedtls_ssl_conf_dbg( &conf, string_debug, &buffer); 101 mbedtls_ssl_config_free( &conf ); [all …]
|
D | test_suite_ssl.function | 15 mbedtls_ssl_config conf; 19 mbedtls_ssl_config_init( &conf ); 21 TEST_ASSERT( mbedtls_ssl_config_defaults( &conf, 25 TEST_ASSERT( mbedtls_ssl_setup( &ssl, &conf ) == 0 ); 40 mbedtls_ssl_config_free( &conf );
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | ssl.h | 757 const mbedtls_ssl_config *conf; /*!< configuration information */ member 973 const mbedtls_ssl_config *conf ); 993 void mbedtls_ssl_conf_endpoint( mbedtls_ssl_config *conf, int endpoint ); 1009 void mbedtls_ssl_conf_transport( mbedtls_ssl_config *conf, int transport ); 1037 void mbedtls_ssl_conf_authmode( mbedtls_ssl_config *conf, int authmode ); 1051 void mbedtls_ssl_conf_verify( mbedtls_ssl_config *conf, 1063 void mbedtls_ssl_conf_rng( mbedtls_ssl_config *conf, 1081 void mbedtls_ssl_conf_dbg( mbedtls_ssl_config *conf, 1137 void mbedtls_ssl_conf_read_timeout( mbedtls_ssl_config *conf, uint32_t timeout ); 1262 void mbedtls_ssl_conf_session_tickets_cb( mbedtls_ssl_config *conf, [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/scripts/ |
D | test-ref-configs.pl | 55 while( my ($conf, $data) = each %configs ) { 60 print "* Testing configuration: $conf\n"; 63 system( "cp configs/$conf $config_h" ) 64 and abort "Failed to activate $conf\n"; 66 system( "make CFLAGS='-Os -Werror'" ) and abort "Failed to build: $conf\n"; 67 system( "make test" ) and abort "Failed test suite: $conf\n"; 74 and abort "Failed compat.sh: $conf\n"; 86 and abort "Failed ssl-opt.sh: $conf\n";
|
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | ssl_tls.c | 65 if( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM ) in ssl_ep_len() 112 if( ssl->handshake->retransmit_timeout >= ssl->conf->hs_timeout_max ) in ssl_double_retransmit_timeout() 119 new_timeout > ssl->conf->hs_timeout_max ) in ssl_double_retransmit_timeout() 121 new_timeout = ssl->conf->hs_timeout_max; in ssl_double_retransmit_timeout() 133 ssl->handshake->retransmit_timeout = ssl->conf->hs_timeout_min; in ssl_reset_retransmit_timeout() 773 if( ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT ) in mbedtls_ssl_derive_keys() 793 if( ssl->conf->endpoint == MBEDTLS_SSL_IS_SERVER ) in mbedtls_ssl_derive_keys() 865 if( ssl->conf->f_export_keys != NULL ) in mbedtls_ssl_derive_keys() 867 ssl->conf->f_export_keys( ssl->conf->p_export_keys, in mbedtls_ssl_derive_keys() 1087 const unsigned char *psk = ssl->conf->psk; in mbedtls_ssl_psk_derive_premaster() [all …]
|
D | ssl_cli.c | 175 if( ssl->conf->max_minor_ver != MBEDTLS_SSL_MINOR_VERSION_3 ) in ssl_write_signature_algorithms_ext() 180 for( md = ssl->conf->sig_hashes; *md != MBEDTLS_MD_NONE; md++ ) in ssl_write_signature_algorithms_ext() 201 for( md = ssl->conf->sig_hashes; *md != MBEDTLS_MD_NONE; md++ ) in ssl_write_signature_algorithms_ext() 266 for( grp_id = ssl->conf->curve_list; *grp_id != MBEDTLS_ECP_DP_NONE; grp_id++ ) 291 for( grp_id = ssl->conf->curve_list; *grp_id != MBEDTLS_ECP_DP_NONE; grp_id++ ) 387 ssl->conf->f_rng, ssl->conf->p_rng ); 436 if( ssl->conf->mfl_code == MBEDTLS_SSL_MAX_FRAG_LEN_NONE ) { 454 *p++ = ssl->conf->mfl_code; 469 if( ssl->conf->trunc_hmac == MBEDTLS_SSL_TRUNC_HMAC_DISABLED ) 501 if( ssl->conf->encrypt_then_mac == MBEDTLS_SSL_ETM_DISABLED || [all …]
|
D | ssl_srv.c | 64 if( ssl->conf->endpoint != MBEDTLS_SSL_IS_SERVER ) in mbedtls_ssl_set_client_transport_id() 78 void mbedtls_ssl_conf_dtls_cookies( mbedtls_ssl_config *conf, in mbedtls_ssl_conf_dtls_cookies() argument 83 conf->f_cookie_write = f_cookie_write; in mbedtls_ssl_conf_dtls_cookies() 84 conf->f_cookie_check = f_cookie_check; in mbedtls_ssl_conf_dtls_cookies() 85 conf->p_cookie = p_cookie; in mbedtls_ssl_conf_dtls_cookies() 119 ret = ssl->conf->f_sni( ssl->conf->p_sni, in ssl_parse_servername_ext() 213 for( md_cur = ssl->conf->sig_hashes; *md_cur != MBEDTLS_MD_NONE; md_cur++ ) { in ssl_parse_signature_algorithms_ext() 385 if( ssl->conf->trunc_hmac == MBEDTLS_SSL_TRUNC_HMAC_ENABLED ) in ssl_parse_truncated_hmac_ext() 405 if( ssl->conf->encrypt_then_mac == MBEDTLS_SSL_ETM_ENABLED && in ssl_parse_encrypt_then_mac_ext() 428 if( ssl->conf->extended_ms == MBEDTLS_SSL_EXTENDED_MS_ENABLED && in ssl_parse_extended_ms_ext() [all …]
|
D | debug.c | 75 ssl->conf->f_dbg( ssl->conf->p_dbg, level, file, line, idstr ); in debug_send_line() 77 ssl->conf->f_dbg( ssl->conf->p_dbg, level, file, line, str ); in debug_send_line() 89 if( NULL == ssl || NULL == ssl->conf || NULL == ssl->conf->f_dbg || level > debug_threshold ) in mbedtls_debug_print_msg() 124 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || level > debug_threshold ) in mbedtls_debug_print_ret() 149 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || level > debug_threshold ) in mbedtls_debug_print_buf() 202 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || level > debug_threshold ) in mbedtls_debug_print_ecp() 222 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || X == NULL || level > debug_threshold ) in mbedtls_debug_print_mpi() 348 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || crt == NULL || level > debug_threshold ) in mbedtls_debug_print_crt()
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/ |
D | mini_client.c | 183 mbedtls_ssl_config conf; in main() local 191 mbedtls_ssl_config_init( &conf ); in main() 204 if( mbedtls_ssl_config_defaults( &conf, in main() 213 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 216 mbedtls_ssl_conf_psk( &conf, psk, sizeof( psk ), in main() 227 mbedtls_ssl_conf_ca_chain( &conf, &ca, NULL ); in main() 228 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_REQUIRED ); in main() 231 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in main() 293 mbedtls_ssl_config_free( &conf ); in main()
|
D | ssl_client1.c | 92 mbedtls_ssl_config conf; in main() local 104 mbedtls_ssl_config_init( &conf ); in main() 159 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 172 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_OPTIONAL ); in main() 173 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in main() 174 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 175 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main() 177 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main() 299 mbedtls_ssl_config_free( &conf ); in main()
|
D | dtls_client.c | 95 mbedtls_ssl_config conf; in main() local 111 mbedtls_ssl_config_init( &conf ); in main() 166 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 178 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_OPTIONAL ); in main() 179 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in main() 180 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 181 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main() 183 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main() 332 mbedtls_ssl_config_free( &conf ); in main()
|
D | dtls_server.c | 105 mbedtls_ssl_config conf; in main() local 116 mbedtls_ssl_config_init( &conf ); in main() 203 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 212 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 213 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main() 216 mbedtls_ssl_conf_session_cache( &conf, &cache, in main() 221 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 222 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 235 mbedtls_ssl_conf_dtls_cookies( &conf, mbedtls_ssl_cookie_write, mbedtls_ssl_cookie_check, in main() 238 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main() [all …]
|
D | ssl_server.c | 103 mbedtls_ssl_config conf; in main() local 113 mbedtls_ssl_config_init( &conf ); in main() 199 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 208 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 209 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main() 212 mbedtls_ssl_conf_session_cache( &conf, &cache, in main() 217 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 218 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 224 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main() 384 mbedtls_ssl_config_free( &conf ); in main()
|
D | ssl_fork_server.c | 106 mbedtls_ssl_config conf; in main() local 113 mbedtls_ssl_config_init( &conf ); in main() 180 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 189 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 190 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main() 192 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 193 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 283 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main() 402 mbedtls_ssl_config_free( &conf ); in main()
|
D | ssl_pthread_server.c | 323 mbedtls_ssl_config conf; in main() local 345 mbedtls_ssl_config_init( &conf ); in main() 353 base_info.config = &conf; in main() 419 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 429 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 430 mbedtls_ssl_conf_dbg( &conf, my_mutexed_debug, stdout ); in main() 436 mbedtls_ssl_conf_session_cache( &conf, &cache, in main() 441 mbedtls_ssl_conf_ca_chain( &conf, &cachain, NULL ); in main() 442 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 508 mbedtls_ssl_config_free( &conf ); in main()
|
D | ssl_server2.c | 800 mbedtls_ssl_config conf; in main() local 849 mbedtls_ssl_config_init( &conf ); in main() 1602 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 1612 mbedtls_ssl_conf_authmode( &conf, opt.auth_mode ); in main() 1616 mbedtls_ssl_conf_handshake_timeout( &conf, opt.hs_to_min, opt.hs_to_max ); in main() 1620 if( ( ret = mbedtls_ssl_conf_max_frag_len( &conf, opt.mfl_code ) ) != 0 ) in main() 1629 mbedtls_ssl_conf_truncated_hmac( &conf, opt.trunc_hmac ); in main() 1634 mbedtls_ssl_conf_extended_master_secret( &conf, opt.extended_ms ); in main() 1639 mbedtls_ssl_conf_encrypt_then_mac( &conf, opt.etm ); in main() 1644 if( ( ret = mbedtls_ssl_conf_alpn_protocols( &conf, alpn_list ) ) != 0 ) in main() [all …]
|
D | ssl_client2.c | 417 mbedtls_ssl_config conf; in main() local 436 mbedtls_ssl_config_init( &conf ); in main() 1082 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 1093 mbedtls_ssl_conf_verify( &conf, my_verify, NULL ); in main() 1097 mbedtls_ssl_conf_authmode( &conf, opt.auth_mode ); in main() 1101 mbedtls_ssl_conf_handshake_timeout( &conf, opt.hs_to_min, opt.hs_to_max ); in main() 1105 if( ( ret = mbedtls_ssl_conf_max_frag_len( &conf, opt.mfl_code ) ) != 0 ) in main() 1114 mbedtls_ssl_conf_truncated_hmac( &conf, opt.trunc_hmac ); in main() 1119 mbedtls_ssl_conf_extended_master_secret( &conf, opt.extended_ms ); in main() 1124 mbedtls_ssl_conf_encrypt_then_mac( &conf, opt.etm ); in main() [all …]
|
D | ssl_mail_client.c | 361 mbedtls_ssl_config conf; in main() local 375 mbedtls_ssl_config_init( &conf ); in main() 586 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 597 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_OPTIONAL ); in main() 599 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 600 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main() 603 mbedtls_ssl_conf_ciphersuites( &conf, opt.force_ciphersuite ); in main() 605 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in main() 606 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &clicert, &pkey ) ) != 0 ) in main() 612 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main() [all …]
|
/net-tools-3.6.0/ |
D | dtls-server.c | 116 mbedtls_ssl_config conf; in main() local 168 mbedtls_ssl_config_init(&conf); in main() 240 if ((ret = mbedtls_ssl_config_defaults(&conf, in main() 249 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 250 mbedtls_ssl_conf_dbg(&conf, my_debug, stdout); in main() 253 mbedtls_ssl_conf_session_cache(&conf, &cache, in main() 258 mbedtls_ssl_conf_ca_chain(&conf, srvcert.next, NULL); in main() 259 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main() 273 mbedtls_ssl_conf_dtls_cookies(&conf, mbedtls_ssl_cookie_write, in main() 276 if ((ret = mbedtls_ssl_setup(&ssl, &conf)) != 0) { in main() [all …]
|
D | dtls-client.c | 346 mbedtls_ssl_config conf; in main() local 405 mbedtls_ssl_config_init(&conf); in main() 458 if ((ret = mbedtls_ssl_config_defaults(&conf, in main() 466 mbedtls_ssl_conf_cert_profile(&conf, &mbedtls_x509_crt_profile_default); in main() 467 mbedtls_ssl_conf_authmode(&conf, MBEDTLS_SSL_VERIFY_REQUIRED); in main() 468 mbedtls_ssl_conf_ca_chain(&conf, &cacert, NULL); in main() 469 mbedtls_ssl_conf_rng(&conf, mbedtls_ctr_drbg_random, &ctr_drbg); in main() 470 mbedtls_ssl_conf_dbg(&conf, my_debug, stdout); in main() 472 if ((ret = mbedtls_ssl_setup(&ssl, &conf)) != 0) { in main() 647 mbedtls_ssl_config_free(&conf); in main()
|
D | net-setup.sh | 29 $ net-setup.sh --config zeth-vlan.conf 30 $ net-setup.sh --config my-own-config.conf --iface foobar 41 $ net-setup.sh --config my-own-config.conf up 43 $ net-setup.sh --config my-own-config.conf down 48 $ net-setup.sh --config my-own-config.conf --iface foo user bar 67 CONF_FILE=./zeth.conf
|
D | README.docker | 10 sudo ./net-setup.sh --config docker.conf start 18 given on the docker command line match the subnets in 'docker.conf'. 40 cmake -GNinja -DBOARD=qemu_x86 -DOVERLAY_CONFIG=overlay-e1000.conf \ 54 sudo ./net-setup.sh --config docker.conf stop
|
D | loop-radvd.sh | 25 CONF_FILE=radvd_slip.conf 29 CONF_FILE=radvd_native_posix.conf
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/x509/ |
D | cert_app.c | 154 mbedtls_ssl_config conf; in main() local 169 mbedtls_ssl_config_init( &conf ); in main() 401 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main() 412 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_REQUIRED ); in main() 413 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in main() 414 mbedtls_ssl_conf_verify( &conf, my_verify, NULL ); in main() 417 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_NONE ); in main() 419 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main() 420 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main() 422 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/yotta/data/ |
D | adjust-config.sh | 13 conf() { function 19 conf set YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE \"mbedtls/target_config.h\"
|