Home
last modified time | relevance | path

Searched refs:conf (Results 1 – 25 of 29) sorted by relevance

12

/mbedtls-development/tests/suites/
A Dtest_suite_debug.function55 mbedtls_ssl_config conf;
59 mbedtls_ssl_config_init( &conf );
63 mbedtls_ssl_config_defaults( &conf,
81 mbedtls_ssl_config_free( &conf );
90 mbedtls_ssl_config conf;
94 mbedtls_ssl_config_init( &conf );
113 mbedtls_ssl_config_free( &conf );
122 mbedtls_ssl_config conf;
126 mbedtls_ssl_config_init( &conf );
155 mbedtls_ssl_config conf;
[all …]
/mbedtls-development/programs/fuzz/
A Dfuzz_client.c42 mbedtls_ssl_config conf; in LLVMFuzzerTestOneInput() local
75 mbedtls_ssl_config_init( &conf ); in LLVMFuzzerTestOneInput()
83 if( mbedtls_ssl_config_defaults( &conf, in LLVMFuzzerTestOneInput()
91 mbedtls_ssl_conf_psk( &conf, psk, sizeof( psk ), in LLVMFuzzerTestOneInput()
98 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in LLVMFuzzerTestOneInput()
99 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_REQUIRED ); in LLVMFuzzerTestOneInput()
103 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_NONE ); in LLVMFuzzerTestOneInput()
119 mbedtls_ssl_conf_alpn_protocols( &conf, alpn_list ); in LLVMFuzzerTestOneInput()
126 mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg ); in LLVMFuzzerTestOneInput()
128 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in LLVMFuzzerTestOneInput()
[all …]
A Dfuzz_server.c42 mbedtls_ssl_config conf; in LLVMFuzzerTestOneInput() local
90 mbedtls_ssl_config_init( &conf ); in LLVMFuzzerTestOneInput()
95 if( mbedtls_ssl_config_defaults( &conf, in LLVMFuzzerTestOneInput()
102 mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg ); in LLVMFuzzerTestOneInput()
105 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in LLVMFuzzerTestOneInput()
106 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
113 mbedtls_ssl_conf_alpn_protocols( &conf, alpn_list ); in LLVMFuzzerTestOneInput()
125 mbedtls_ssl_conf_session_tickets_cb( &conf, in LLVMFuzzerTestOneInput()
139 mbedtls_ssl_conf_psk( &conf, psk, sizeof( psk ), in LLVMFuzzerTestOneInput()
147 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in LLVMFuzzerTestOneInput()
[all …]
A Dfuzz_dtlsclient.c38 mbedtls_ssl_config conf; in LLVMFuzzerTestOneInput() local
58 mbedtls_ssl_config_init( &conf ); in LLVMFuzzerTestOneInput()
67 if( mbedtls_ssl_config_defaults( &conf, in LLVMFuzzerTestOneInput()
74 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in LLVMFuzzerTestOneInput()
76 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_NONE ); in LLVMFuzzerTestOneInput()
77 mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg ); in LLVMFuzzerTestOneInput()
79 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in LLVMFuzzerTestOneInput()
116 mbedtls_ssl_config_free( &conf ); in LLVMFuzzerTestOneInput()
A Dfuzz_dtlsserver.c39 mbedtls_ssl_config conf; in LLVMFuzzerTestOneInput() local
67 mbedtls_ssl_config_init( &conf ); in LLVMFuzzerTestOneInput()
77 if( mbedtls_ssl_config_defaults( &conf, in LLVMFuzzerTestOneInput()
85 mbedtls_ssl_conf_rng( &conf, dummy_random, &ctr_drbg ); in LLVMFuzzerTestOneInput()
88 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in LLVMFuzzerTestOneInput()
89 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
96 …mbedtls_ssl_conf_dtls_cookies( &conf, mbedtls_ssl_cookie_write, mbedtls_ssl_cookie_check, &cookie_… in LLVMFuzzerTestOneInput()
98 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in LLVMFuzzerTestOneInput()
143 mbedtls_ssl_config_free( &conf ); in LLVMFuzzerTestOneInput()
/mbedtls-development/library/
A Dssl_tls.c73 conf->cid_len = len; in mbedtls_ssl_conf_cid()
2709 if( ssl->conf->f_set_cache( ssl->conf->p_cache, in mbedtls_ssl_handshake_wrapup()
3220 ssl->conf = conf; in mbedtls_ssl_setup()
3269 ssl->conf = NULL; in mbedtls_ssl_setup()
3749 mbedtls_platform_zeroize( conf->psk, conf->psk_len ); in ssl_conf_remove_psk()
3786 memcpy( conf->psk_identity, psk_identity, conf->psk_identity_len ); in ssl_conf_set_psk_identity()
3812 memcpy( conf->psk, psk, conf->psk_len ); in mbedtls_ssl_conf_psk()
3904 conf->f_psk = f_psk; in mbedtls_ssl_conf_psk_cb()
3905 conf->p_psk = p_psk; in mbedtls_ssl_conf_psk_cb()
4059 conf->f_sni = f_sni; in mbedtls_ssl_conf_sni()
[all …]
A Dssl_cli.c62 if( conf->psk != NULL && conf->psk_len != 0 ) in ssl_conf_has_static_psk()
82 if( conf->psk != NULL && conf->psk_len != 0 ) in ssl_conf_has_static_raw_psk()
856 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, p, 4 ) ) != 0 ) in ssl_generate_random()
862 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, p, 28 ) ) != 0 ) in ssl_generate_random()
1034 ret = ssl->conf->f_rng( ssl->conf->p_rng, in ssl_write_client_hello()
3498 ssl->conf->f_rng, ssl->conf->p_rng ); in ssl_write_client_key_exchange()
3636 ssl->conf->f_rng, ssl->conf->p_rng ); in ssl_write_client_key_exchange()
3765 ssl->conf->f_rng, ssl->conf->p_rng ); in ssl_write_client_key_exchange()
3790 ssl->conf->f_rng, ssl->conf->p_rng ); in ssl_write_client_key_exchange()
3848 ssl->conf->f_rng, ssl->conf->p_rng ); in ssl_write_client_key_exchange()
[all …]
A Dssl_srv.c119 ret = ssl->conf->f_sni( ssl->conf->p_sni, in ssl_parse_servername_ext()
153 if( conf->psk_identity_len == 0 || conf->psk_identity == NULL ) in ssl_conf_has_psk_or_cb()
156 if( conf->psk != NULL && conf->psk_len != 0 ) in ssl_conf_has_psk_or_cb()
1477 if( ssl->conf->f_cookie_check( ssl->conf->p_cookie, in ssl_parse_client_hello()
2355 if( ( ret = ssl->conf->f_cookie_write( ssl->conf->p_cookie, in ssl_write_hello_verify_request()
2415 ret = ssl->conf->f_get_cache( ssl->conf->p_cache, in ssl_handle_id_based_session_resumption()
2942 ssl->conf->f_rng, ssl->conf->p_rng ); in ssl_prepare_server_key_exchange()
3005 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 ) in ssl_prepare_server_key_exchange()
3071 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 ) in ssl_prepare_server_key_exchange()
3962 ssl->conf->f_rng, ssl->conf->p_rng ); in ssl_parse_client_key_exchange()
[all …]
A Ddebug.c71 ssl->conf->f_dbg( ssl->conf->p_dbg, level, file, line, idstr ); in debug_send_line()
73 ssl->conf->f_dbg( ssl->conf->p_dbg, level, file, line, str ); in debug_send_line()
87 NULL == ssl->conf || in mbedtls_debug_print_msg()
88 NULL == ssl->conf->f_dbg || in mbedtls_debug_print_msg()
114 NULL == ssl->conf || in mbedtls_debug_print_ret()
115 NULL == ssl->conf->f_dbg || in mbedtls_debug_print_ret()
144 NULL == ssl->conf || in mbedtls_debug_print_buf()
145 NULL == ssl->conf->f_dbg || in mbedtls_debug_print_buf()
202 NULL == ssl->conf || in mbedtls_debug_print_ecp()
203 NULL == ssl->conf->f_dbg || in mbedtls_debug_print_ecp()
[all …]
A Dssl_misc.h1219 else if( ssl->conf->psk != NULL && ssl->conf->psk_len > 0 ) in mbedtls_ssl_get_psk()
1221 *psk = ssl->conf->psk; in mbedtls_ssl_get_psk()
1222 *psk_len = ssl->conf->psk_len; in mbedtls_ssl_get_psk()
1250 return( ssl->conf->psk_opaque ); in mbedtls_ssl_get_opaque_psk()
1302 key_cert = ssl->conf->key_cert; in mbedtls_ssl_own_key()
1314 key_cert = ssl->conf->key_cert; in mbedtls_ssl_own_cert()
1589 conf->max_minor_ver == MBEDTLS_SSL_MINOR_VERSION_4 ) in mbedtls_ssl_conf_is_tls13_only()
1603 conf->max_minor_ver == MBEDTLS_SSL_MINOR_VERSION_3 ) in mbedtls_ssl_conf_is_tls12_only()
1617 conf->max_minor_ver == MBEDTLS_SSL_MINOR_VERSION_4 ) in mbedtls_ssl_conf_is_hybrid_tls12_tls13()
1730 return( ssl->conf->group_list ); in mbedtls_ssl_get_groups()
[all …]
A Dssl_msg.c274 new_timeout = ssl->conf->hs_timeout_max; in ssl_double_retransmit_timeout()
2596 ssl->conf->f_rng, ssl->conf->p_rng ) ) != 0 ) in mbedtls_ssl_write_record()
3220 if( ssl->conf->f_cookie_write == NULL || in ssl_handle_possible_reconnect()
3221 ssl->conf->f_cookie_check == NULL ) in ssl_handle_possible_reconnect()
3231 ssl->conf->f_cookie_write, in ssl_handle_possible_reconnect()
3232 ssl->conf->f_cookie_check, in ssl_handle_possible_reconnect()
3233 ssl->conf->p_cookie, in ssl_handle_possible_reconnect()
4712 if( ssl == NULL || ssl->conf == NULL ) in mbedtls_ssl_send_alert_message()
5207 if( ssl == NULL || ssl->conf == NULL ) in mbedtls_ssl_read()
5493 if( ssl == NULL || ssl->conf == NULL ) in mbedtls_ssl_write()
[all …]
A Dssl_tls13_generic.c169 if( ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT && in mbedtls_ssl_tls13_write_sig_alg_ext()
190 for( const uint16_t *sig_alg = ssl->conf->tls13_sig_algs; in mbedtls_ssl_tls13_write_sig_alg_ext()
297 const uint16_t *tls13_sig_alg = ssl->conf->tls13_sig_algs; in ssl_tls13_sig_alg_is_offered()
710 ca_chain = ssl->conf->ca_chain; in ssl_tls13_validate_certificate()
711 ca_crl = ssl->conf->ca_crl; in ssl_tls13_validate_certificate()
720 ssl->conf->cert_profile, in ssl_tls13_validate_certificate()
723 ssl->conf->f_vrfy, ssl->conf->p_vrfy ); in ssl_tls13_validate_certificate()
753 !ssl->conf->endpoint, in ssl_tls13_validate_certificate()
864 ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT ? in ssl_tls13_preprocess_finished_message()
951 ssl->conf->endpoint, in ssl_tls13_postprocess_server_finished_message()
[all …]
/mbedtls-development/tests/scripts/
A Dtest-ref-configs.pl82 while( my ($conf, $data) = each %configs ) {
87 print "* Testing configuration: $conf\n";
89 $ENV{MBEDTLS_TEST_CONFIGURATION} = $conf;
91 system( "cp configs/$conf $config_h" )
92 and abort "Failed to activate $conf\n";
94 system( "CFLAGS='-Os -Werror -Wall -Wextra' make" ) and abort "Failed to build: $conf\n";
95 system( "make test" ) and abort "Failed test suite: $conf\n";
102 and abort "Failed compat.sh: $conf\n";
114 and abort "Failed ssl-opt.sh: $conf\n";
/mbedtls-development/include/mbedtls/
A Dssl.h1718 const mbedtls_ssl_config *conf );
1799 void mbedtls_ssl_conf_verify( mbedtls_ssl_config *conf,
1811 void mbedtls_ssl_conf_rng( mbedtls_ssl_config *conf,
1829 void mbedtls_ssl_conf_dbg( mbedtls_ssl_config *conf,
2858 void mbedtls_ssl_conf_ca_chain( mbedtls_ssl_config *conf,
2914 void mbedtls_ssl_conf_ca_cb( mbedtls_ssl_config *conf,
2955 int mbedtls_ssl_conf_own_cert( mbedtls_ssl_config *conf,
2993 int mbedtls_ssl_conf_psk( mbedtls_ssl_config *conf,
3123 void mbedtls_ssl_conf_psk_cb( mbedtls_ssl_config *conf,
3257 void mbedtls_ssl_conf_groups( mbedtls_ssl_config *conf,
[all …]
/mbedtls-development/programs/ssl/
A Dmini_client.c176 mbedtls_ssl_config conf; in main() local
184 mbedtls_ssl_config_init( &conf ); in main()
197 if( mbedtls_ssl_config_defaults( &conf, in main()
206 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
209 mbedtls_ssl_conf_psk( &conf, psk, sizeof( psk ), in main()
220 mbedtls_ssl_conf_ca_chain( &conf, &ca, NULL ); in main()
221 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_REQUIRED ); in main()
224 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in main()
286 mbedtls_ssl_config_free( &conf ); in main()
A Ddtls_server.c112 mbedtls_ssl_config conf; in main() local
123 mbedtls_ssl_config_init( &conf ); in main()
210 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
219 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
220 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main()
221 mbedtls_ssl_conf_read_timeout( &conf, READ_TIMEOUT_MS ); in main()
224 mbedtls_ssl_conf_session_cache( &conf, &cache, in main()
229 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
230 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
246 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
[all …]
A Ddtls_client.c103 mbedtls_ssl_config conf; in main() local
119 mbedtls_ssl_config_init( &conf ); in main()
174 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
186 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_OPTIONAL ); in main()
187 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in main()
188 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
189 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main()
190 mbedtls_ssl_conf_read_timeout( &conf, READ_TIMEOUT_MS ); in main()
192 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
345 mbedtls_ssl_config_free( &conf ); in main()
A Dssl_client1.c91 mbedtls_ssl_config conf; in main() local
103 mbedtls_ssl_config_init( &conf ); in main()
158 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
171 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_OPTIONAL ); in main()
172 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in main()
173 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
174 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main()
176 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
304 mbedtls_ssl_config_free( &conf ); in main()
A Dssl_server.c100 mbedtls_ssl_config conf; in main() local
110 mbedtls_ssl_config_init( &conf ); in main()
197 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
206 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
207 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main()
210 mbedtls_ssl_conf_session_cache( &conf, &cache, in main()
215 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
216 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
222 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
382 mbedtls_ssl_config_free( &conf ); in main()
A Dssl_fork_server.c106 mbedtls_ssl_config conf; in main() local
113 mbedtls_ssl_config_init( &conf ); in main()
181 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
190 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
191 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main()
193 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
194 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
285 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
406 mbedtls_ssl_config_free( &conf ); in main()
A Dssl_pthread_server.c321 mbedtls_ssl_config conf; in main() local
343 mbedtls_ssl_config_init( &conf ); in main()
351 base_info.config = &conf; in main()
418 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
428 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
429 mbedtls_ssl_conf_dbg( &conf, my_mutexed_debug, stdout ); in main()
435 mbedtls_ssl_conf_session_cache( &conf, &cache, in main()
440 mbedtls_ssl_conf_ca_chain( &conf, &cachain, NULL ); in main()
441 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
508 mbedtls_ssl_config_free( &conf ); in main()
A Dssl_server2.c1307 mbedtls_ssl_config conf; in main() local
1410 mbedtls_ssl_config_init( &conf ); in main()
2559 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
2614 ret = mbedtls_ssl_conf_cid( &conf, cid_len, in main()
2690 mbedtls_ssl_conf_rng( &conf, rng_get, &rng ); in main()
2691 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main()
2700 mbedtls_ssl_conf_session_cache( &conf, &cache, in main()
2717 mbedtls_ssl_conf_session_tickets_cb( &conf, in main()
2866 mbedtls_ssl_conf_async_private_cb( &conf, in main()
2906 mbedtls_ssl_conf_groups( &conf, group_list ); in main()
[all …]
A Dssl_client2.c703 mbedtls_ssl_config conf; in main() local
756 mbedtls_ssl_config_init( &conf ); in main()
1704 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
1742 ret = mbedtls_ssl_conf_cid( &conf, cid_len, in main()
1843 mbedtls_ssl_conf_rng( &conf, rng_get, &rng ); in main()
1844 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main()
1892 mbedtls_ssl_conf_groups( &conf, group_list ); in main()
1898 mbedtls_ssl_conf_sig_algs( &conf, sig_alg_list ); in main()
1930 ret = mbedtls_ssl_conf_psk( &conf, psk, psk_len, in main()
1949 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
[all …]
A Dssl_mail_client.c379 mbedtls_ssl_config conf; in main() local
393 mbedtls_ssl_config_init( &conf ); in main()
602 if( ( ret = mbedtls_ssl_config_defaults( &conf, in main()
613 mbedtls_ssl_conf_authmode( &conf, MBEDTLS_SSL_VERIFY_OPTIONAL ); in main()
615 mbedtls_ssl_conf_rng( &conf, mbedtls_ctr_drbg_random, &ctr_drbg ); in main()
616 mbedtls_ssl_conf_dbg( &conf, my_debug, stdout ); in main()
619 mbedtls_ssl_conf_ciphersuites( &conf, opt.force_ciphersuite ); in main()
621 mbedtls_ssl_conf_ca_chain( &conf, &cacert, NULL ); in main()
622 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &clicert, &pkey ) ) != 0 ) in main()
628 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
[all …]
/mbedtls-development/programs/x509/
A Dcert_app.c153 mbedtls_ssl_config conf; in main() local
168 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 …]

Completed in 92 milliseconds

12