Home
last modified time | relevance | path

Searched refs:ssl (Results 1 – 25 of 57) sorted by relevance

123

/mbedtls-development/library/
A Dssl_cli.c507 memcpy( p, ssl->own_cid, ssl->own_cid_len ); in ssl_write_cid_ext()
943 ssl->major_ver = ssl->conf->min_major_ver; in ssl_write_client_hello()
944 ssl->minor_ver = ssl->conf->min_minor_ver; in ssl_write_client_hello()
1034 ret = ssl->conf->f_rng( ssl->conf->p_rng, in ssl_write_client_hello()
2005 if( ssl->major_ver < ssl->conf->min_major_ver || in ssl_parse_server_hello()
2006 ssl->minor_ver < ssl->conf->min_minor_ver || in ssl_parse_server_hello()
2007 ssl->major_ver > ssl->conf->max_major_ver || in ssl_parse_server_hello()
2008 ssl->minor_ver > ssl->conf->max_minor_ver ) in ssl_parse_server_hello()
2014 ssl->major_ver, ssl->minor_ver, in ssl_parse_server_hello()
2970 end = ssl->in_msg + ssl->in_hslen; in ssl_parse_server_key_exchange()
[all …]
A Dssl_srv.c119 ret = ssl->conf->f_sni( ssl->conf->p_sni, in ssl_parse_servername_ext()
1350 if( ssl->in_msg[6] != 0 || ssl->in_msg[7] != 0 || ssl->in_msg[8] != 0 || in ssl_parse_client_hello()
2367 ssl->out_msglen = p - ssl->out_msg; in ssl_write_hello_verify_request()
2880 int ret = ssl->conf->f_async_resume( ssl, in ssl_resume_server_key_exchange()
2915 size_t out_buf_len = ssl->out_buf_len - ( ssl->out_msg - ssl->out_buf ); in ssl_prepare_server_key_exchange()
2940 ssl->out_msg + ssl->out_msglen, in ssl_prepare_server_key_exchange()
3180 ssl->out_msg[ssl->out_msglen++] = in ssl_prepare_server_key_exchange()
3182 ssl->out_msg[ssl->out_msglen++] = in ssl_prepare_server_key_exchange()
3427 int ret = ssl->conf->f_async_resume( ssl, in ssl_resume_decrypt_pms()
3656 if( ssl->conf->f_psk( ssl->conf->p_psk, ssl, *p, n ) != 0 ) in ssl_parse_client_psk_identity()
[all …]
A Dssl_msg.c1856 ret = ssl->f_recv( ssl->p_bio, ssl->in_hdr, len ); in mbedtls_ssl_fetch_input()
1993 ret = ssl->f_send( ssl->p_bio, buf, ssl->out_left ); in mbedtls_ssl_flush_output()
2502 ssl->handshake->update_checksum( ssl, ssl->out_msg, ssl->out_msglen ); in mbedtls_ssl_write_handshake_msg_ext()
2930 ssl->handshake->update_checksum( ssl, ssl->in_msg, ssl->in_hslen ); in mbedtls_ssl_update_handshake_status()
3249 send_ret = ssl->f_send( ssl->p_bio, ssl->out_buf, len ); in ssl_handle_possible_reconnect()
4204 memmove( ssl->in_msg, ssl->in_msg + ssl->in_hslen, in ssl_consume_current_message()
4428 ssl->in_iv = ssl->in_msg = ssl->in_len + 2; in ssl_get_next_record()
4561 ssl->in_iv = ssl->in_len + 2; in ssl_get_next_record()
4860 ssl->out_msg = ssl->out_iv; in mbedtls_ssl_update_out_pointers()
4914 ssl->in_msg = ssl->in_iv; in mbedtls_ssl_update_in_pointers()
[all …]
A Dssl_tls.c269 written_in = ssl->in_msg - ssl->in_buf; in handle_buffer_resizing()
270 iv_offset_in = ssl->in_iv - ssl->in_buf; in handle_buffer_resizing()
320 ssl->in_msg = ssl->in_buf + written_in; in handle_buffer_resizing()
2699 ssl->session = ssl->session_negotiate; in mbedtls_ssl_handshake_wrapup()
2744 ssl->handshake->calc_finished( ssl, ssl->out_msg + 4, ssl->conf->endpoint ); in mbedtls_ssl_write_finished()
2855 ssl->handshake->calc_finished( ssl, buf, ssl->conf->endpoint ^ 1 ); in mbedtls_ssl_parse_finished()
5459 ssl->conf->f_async_cancel( ssl ); in mbedtls_ssl_handshake_free()
5987 ssl->session_in = ssl->session; in ssl_context_load()
5988 ssl->session_out = ssl->session; in ssl_context_load()
6010 ssl->transform_in = ssl->transform; in ssl_context_load()
[all …]
A Dssl_tls13_client.c99 ((void) ssl); in ssl_tls13_parse_supported_versions_ext()
181 ((void) ssl); in ssl_tls13_write_named_group_list_ecdhe()
194 ((void) ssl); in ssl_tls13_write_named_group_list_dhe()
340 ((void) ssl); in ssl_tls13_get_default_group_id()
692 ssl->major_ver = ssl->conf->min_major_ver; in ssl_tls13_write_client_hello_body()
693 ssl->minor_ver = ssl->conf->min_minor_ver; in ssl_tls13_write_client_hello_body()
838 if( ( ret = ssl->conf->f_rng( ssl->conf->p_rng, in ssl_tls13_prepare_client_hello()
874 ssl->handshake->update_checksum( ssl, buf, msg_len ); in ssl_tls13_write_client_hello()
1333 ssl->session_in = ssl->session_negotiate; in ssl_tls13_finalize_server_hello()
1538 ((void) ssl); in ssl_tls13_postprocess_encrypted_extensions()
[all …]
A Dssl_misc.h1213 if( ssl->handshake->psk != NULL && ssl->handshake->psk_len > 0 ) in mbedtls_ssl_get_psk()
1219 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()
1299 if( ssl->handshake != NULL && ssl->handshake->key_cert != NULL ) in mbedtls_ssl_own_key()
1311 if( ssl->handshake != NULL && ssl->handshake->key_cert != NULL ) in mbedtls_ssl_own_cert()
1342 ((void) ssl); in mbedtls_ssl_in_hdr_len()
1359 return( (size_t) ( ssl->out_iv - ssl->out_hdr ) ); in mbedtls_ssl_out_hdr_len()
1368 ((void) ssl); in mbedtls_ssl_hs_hdr_len()
1438 ((void) ssl); in mbedtls_ssl_ep_len()
1648 ssl->state = ( int ) state; in mbedtls_ssl_handshake_set_state()
[all …]
A Dssl_tls13_generic.c66 *buf = ssl->in_msg + 4; in mbedtls_ssl_tls1_3_fetch_handshake_msg()
86 *buf = ssl->out_msg + 4; in mbedtls_ssl_tls13_start_handshake_msg()
90 ssl->out_msg[0] = hs_type; in mbedtls_ssl_tls13_start_handshake_msg()
118 ssl->handshake->update_checksum( ssl, msg, msg_len ); in mbedtls_ssl_tls1_3_add_hs_msg_to_checksum()
133 ssl->handshake->update_checksum( ssl, hs_hdr, sizeof( hs_hdr ) ); in mbedtls_ssl_tls13_add_hs_hdr_to_checksum()
509 ((void) ssl); in mbedtls_ssl_tls13_process_certificate_verify()
683 ((void) ssl); in ssl_tls13_parse_certificate()
721 ssl->hostname, in ssl_tls13_validate_certificate()
723 ssl->conf->f_vrfy, ssl->conf->p_vrfy ); in ssl_tls13_validate_certificate()
811 ((void) ssl); in ssl_tls13_validate_certificate()
[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()
86 if( NULL == ssl || in mbedtls_debug_print_msg()
87 NULL == ssl->conf || in mbedtls_debug_print_msg()
88 NULL == ssl->conf->f_dbg || in mbedtls_debug_print_msg()
113 if( NULL == ssl || in mbedtls_debug_print_ret()
114 NULL == ssl->conf || in mbedtls_debug_print_ret()
115 NULL == ssl->conf->f_dbg || in mbedtls_debug_print_ret()
143 if( NULL == ssl || in mbedtls_debug_print_buf()
144 NULL == ssl->conf || in mbedtls_debug_print_buf()
[all …]
A Dssl_tls13_keys.c570 mbedtls_ssl_handshake_params *handshake = ssl->handshake; in mbedtls_ssl_tls13_key_schedule_stage_application()
712 ((void) ssl); in mbedtls_ssl_tls1_3_create_psk_binder()
800 (void) ssl; in mbedtls_ssl_tls13_populate_transform()
993 if( ssl->f_export_keys != NULL ) in mbedtls_ssl_tls13_generate_handshake_keys()
995 ssl->f_export_keys( ssl->p_export_keys, in mbedtls_ssl_tls13_generate_handshake_keys()
1003 ssl->f_export_keys( ssl->p_export_keys, in mbedtls_ssl_tls13_generate_handshake_keys()
1063 if( mbedtls_ssl_tls1_3_ephemeral_enabled( ssl ) ) in mbedtls_ssl_tls13_key_schedule_stage_handshake()
1123 &ssl->session_negotiate->app_secrets; in mbedtls_ssl_tls13_generate_application_keys()
1196 if( ssl->f_export_keys != NULL ) in mbedtls_ssl_tls13_generate_application_keys()
1198 ssl->f_export_keys( ssl->p_export_keys, in mbedtls_ssl_tls13_generate_application_keys()
[all …]
/mbedtls-development/programs/ssl/
A Dssl_context_info.c600 ssl += 8; in print_deserialized_ssl_session()
606 ciphersuite_id = ( (int) ssl[0] << 8 ) | (int) ssl[1]; in print_deserialized_ssl_session()
608 ssl += 2; in print_deserialized_ssl_session()
654 ssl += 32; in print_deserialized_ssl_session()
659 ssl += 48; in print_deserialized_ssl_session()
666 ssl += 4; in print_deserialized_ssl_session()
848 ssl += 2; in print_deserialized_ssl_context()
853 ssl += 3; in print_deserialized_ssl_context()
874 ssl += 4; in print_deserialized_ssl_context()
962 ssl += 8; in print_deserialized_ssl_context()
[all …]
A Dssl_mail_client.c172 static int do_handshake( mbedtls_ssl_context *ssl ) in do_handshake() argument
198 mbedtls_ssl_get_ciphersuite( ssl ) ); in do_handshake()
226 mbedtls_ssl_get_peer_cert( ssl ) ); in do_handshake()
271 ret = mbedtls_ssl_read( ssl, data, len ); in write_ssl_and_get_response()
378 mbedtls_ssl_context ssl; in main() local
392 mbedtls_ssl_init( &ssl ); in main()
646 if( do_handshake( &ssl ) != 0 ) in main()
715 if( do_handshake( &ssl ) != 0 ) in main()
824 ret = write_ssl_data( &ssl, buf, len ); in main()
836 mbedtls_ssl_close_notify( &ssl ); in main()
[all …]
A Ddtls_client.c102 mbedtls_ssl_context ssl; in main() local
118 mbedtls_ssl_init( &ssl ); in main()
192 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
198 if( ( ret = mbedtls_ssl_set_hostname( &ssl, SERVER_NAME ) ) != 0 ) in main()
204 mbedtls_ssl_set_bio( &ssl, &server_fd, in main()
207 mbedtls_ssl_set_timer_cb( &ssl, &timer, mbedtls_timing_set_delay, in main()
218 do ret = mbedtls_ssl_handshake( &ssl ); in main()
238 if( ( flags = mbedtls_ssl_get_verify_result( &ssl ) ) != 0 ) in main()
286 do ret = mbedtls_ssl_read( &ssl, buf, len ); in main()
321 do ret = mbedtls_ssl_close_notify( &ssl ); in main()
[all …]
A Dssl_client1.c90 mbedtls_ssl_context ssl; in main() local
102 mbedtls_ssl_init( &ssl ); in main()
176 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
182 if( ( ret = mbedtls_ssl_set_hostname( &ssl, SERVER_NAME ) ) != 0 ) in main()
188 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
196 while( ( ret = mbedtls_ssl_handshake( &ssl ) ) != 0 ) in main()
213 if( ( flags = mbedtls_ssl_get_verify_result( &ssl ) ) != 0 ) in main()
238 while( ( ret = mbedtls_ssl_write( &ssl, buf, len ) ) <= 0 ) in main()
260 ret = mbedtls_ssl_read( &ssl, buf, len ); in main()
285 mbedtls_ssl_close_notify( &ssl ); in main()
[all …]
A Dmini_client.c175 mbedtls_ssl_context ssl; in main() local
183 mbedtls_ssl_init( &ssl ); in main()
224 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in main()
231 if( mbedtls_ssl_set_hostname( &ssl, HOSTNAME ) != 0 ) in main()
262 mbedtls_ssl_set_bio( &ssl, &server_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
264 if( mbedtls_ssl_handshake( &ssl ) != 0 ) in main()
273 if( mbedtls_ssl_write( &ssl, (const unsigned char *) GET_REQUEST, in main()
280 mbedtls_ssl_close_notify( &ssl ); in main()
285 mbedtls_ssl_free( &ssl ); in main()
A Ddtls_server.c111 mbedtls_ssl_context ssl; in main() local
122 mbedtls_ssl_init( &ssl ); in main()
246 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
269 mbedtls_ssl_session_reset( &ssl ); in main()
285 if( ( ret = mbedtls_ssl_set_client_transport_id( &ssl, in main()
293 mbedtls_ssl_set_bio( &ssl, &client_fd, in main()
304 do ret = mbedtls_ssl_handshake( &ssl ); in main()
331 do ret = mbedtls_ssl_read( &ssl, buf, len ); in main()
363 do ret = mbedtls_ssl_write( &ssl, buf, len ); in main()
383 do ret = mbedtls_ssl_close_notify( &ssl ); in main()
[all …]
A Dssl_server.c99 mbedtls_ssl_context ssl; in main() local
109 mbedtls_ssl_init( &ssl ); in main()
222 if( ( ret = mbedtls_ssl_setup( &ssl, &conf ) ) != 0 ) in main()
242 mbedtls_ssl_session_reset( &ssl ); in main()
257 mbedtls_ssl_set_bio( &ssl, &client_fd, mbedtls_net_send, mbedtls_net_recv, NULL ); in main()
267 while( ( ret = mbedtls_ssl_handshake( &ssl ) ) != 0 ) in main()
288 ret = mbedtls_ssl_read( &ssl, buf, len ); in main()
328 mbedtls_ssl_get_ciphersuite( &ssl ) ); in main()
330 while( ( ret = mbedtls_ssl_write( &ssl, buf, len ) ) <= 0 ) in main()
350 while( ( ret = mbedtls_ssl_close_notify( &ssl ) ) < 0 ) in main()
[all …]
/mbedtls-development/tests/suites/
A Dtest_suite_debug.function54 mbedtls_ssl_context ssl;
58 mbedtls_ssl_init( &ssl );
80 mbedtls_ssl_free( &ssl );
89 mbedtls_ssl_context ssl;
93 mbedtls_ssl_init( &ssl );
112 mbedtls_ssl_free( &ssl );
121 mbedtls_ssl_context ssl;
125 mbedtls_ssl_init( &ssl );
144 mbedtls_ssl_free( &ssl );
154 mbedtls_ssl_context ssl;
[all …]
/mbedtls-development/programs/
A DMakefile100 ssl/ssl_server \
280 ssl/dtls_client$(EXEXT): ssl/dtls_client.c $(DEP)
284 ssl/dtls_server$(EXEXT): ssl/dtls_server.c $(DEP)
288 ssl/ssl_client1$(EXEXT): ssl/ssl_client1.c $(DEP)
299 ssl/ssl_test_lib.o: ssl/ssl_test_lib.c ssl/ssl_test_lib.h $(DEP)
303 ssl/ssl_client2$(EXEXT): ssl/ssl_client2.c $(SSL_TEST_DEPS)
307 ssl/ssl_server$(EXEXT): ssl/ssl_server.c $(DEP)
311 ssl/ssl_server2$(EXEXT): ssl/ssl_server2.c $(SSL_TEST_DEPS)
319 ssl/ssl_fork_server$(EXEXT): ssl/ssl_fork_server.c $(DEP)
327 ssl/ssl_mail_client$(EXEXT): ssl/ssl_mail_client.c $(DEP)
[all …]
A D.gitignore46 ssl/dtls_client
47 ssl/dtls_server
48 ssl/mini_client
49 ssl/ssl_client1
50 ssl/ssl_client2
51 ssl/ssl_context_info
52 ssl/ssl_fork_server
53 ssl/ssl_mail_client
54 ssl/ssl_pthread_server
55 ssl/ssl_server
[all …]
/mbedtls-development/programs/fuzz/
A Dfuzz_dtlsserver.c38 mbedtls_ssl_context ssl; in LLVMFuzzerTestOneInput() local
66 mbedtls_ssl_init( &ssl ); in LLVMFuzzerTestOneInput()
98 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in LLVMFuzzerTestOneInput()
101 mbedtls_ssl_set_timer_cb( &ssl, &timer, mbedtls_timing_set_delay, in LLVMFuzzerTestOneInput()
107 mbedtls_ssl_set_bio( &ssl, &biomemfuzz, dummy_send, fuzz_recv, fuzz_recv_timeout ); in LLVMFuzzerTestOneInput()
111 ret = mbedtls_ssl_handshake( &ssl ); in LLVMFuzzerTestOneInput()
114 biomemfuzz.Offset = ssl.next_record_offset; in LLVMFuzzerTestOneInput()
115 mbedtls_ssl_session_reset( &ssl ); in LLVMFuzzerTestOneInput()
120 ret = mbedtls_ssl_handshake( &ssl ); in LLVMFuzzerTestOneInput()
128 ret = mbedtls_ssl_read( &ssl, buf, len ); in LLVMFuzzerTestOneInput()
[all …]
A Dfuzz_dtlsclient.c37 mbedtls_ssl_context ssl; in LLVMFuzzerTestOneInput() local
57 mbedtls_ssl_init( &ssl ); in LLVMFuzzerTestOneInput()
79 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in LLVMFuzzerTestOneInput()
82 mbedtls_ssl_set_timer_cb( &ssl, &timer, mbedtls_timing_set_delay, in LLVMFuzzerTestOneInput()
86 if( mbedtls_ssl_set_hostname( &ssl, "localhost" ) != 0 ) in LLVMFuzzerTestOneInput()
93 mbedtls_ssl_set_bio( &ssl, &biomemfuzz, dummy_send, fuzz_recv, fuzz_recv_timeout ); in LLVMFuzzerTestOneInput()
95 ret = mbedtls_ssl_handshake( &ssl ); in LLVMFuzzerTestOneInput()
102 ret = mbedtls_ssl_read( &ssl, buf, len ); in LLVMFuzzerTestOneInput()
117 mbedtls_ssl_free( &ssl ); in LLVMFuzzerTestOneInput()
A Dfuzz_client.c41 mbedtls_ssl_context ssl; in LLVMFuzzerTestOneInput() local
74 mbedtls_ssl_init( &ssl ); in LLVMFuzzerTestOneInput()
128 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in LLVMFuzzerTestOneInput()
133 if( mbedtls_ssl_set_hostname( &ssl, "localhost" ) != 0 ) in LLVMFuzzerTestOneInput()
141 mbedtls_ssl_set_bio( &ssl, &biomemfuzz, dummy_send, fuzz_recv, NULL ); in LLVMFuzzerTestOneInput()
143 ret = mbedtls_ssl_handshake( &ssl ); in LLVMFuzzerTestOneInput()
150 ret = mbedtls_ssl_read( &ssl, buf, len ); in LLVMFuzzerTestOneInput()
165 mbedtls_ssl_free( &ssl ); in LLVMFuzzerTestOneInput()
A Dfuzz_server.c41 mbedtls_ssl_context ssl; in LLVMFuzzerTestOneInput() local
89 mbedtls_ssl_init( &ssl ); in LLVMFuzzerTestOneInput()
147 if( mbedtls_ssl_setup( &ssl, &conf ) != 0 ) in LLVMFuzzerTestOneInput()
153 mbedtls_ssl_set_bio( &ssl, &biomemfuzz, dummy_send, fuzz_recv, NULL ); in LLVMFuzzerTestOneInput()
155 mbedtls_ssl_session_reset( &ssl ); in LLVMFuzzerTestOneInput()
156 ret = mbedtls_ssl_handshake( &ssl ); in LLVMFuzzerTestOneInput()
163 ret = mbedtls_ssl_read( &ssl, buf, len ); in LLVMFuzzerTestOneInput()
181 mbedtls_ssl_free( &ssl ); in LLVMFuzzerTestOneInput()
/mbedtls-development/include/mbedtls/
A Ddebug.h38 mbedtls_debug_print_msg( ssl, level, __FILE__, __LINE__, \
42 mbedtls_debug_print_ret( ssl, level, __FILE__, __LINE__, text, ret )
45 mbedtls_debug_print_buf( ssl, level, __FILE__, __LINE__, text, buf, len )
49 mbedtls_debug_print_mpi( ssl, level, __FILE__, __LINE__, text, X )
54 mbedtls_debug_print_ecp( ssl, level, __FILE__, __LINE__, text, X )
60 mbedtls_debug_print_crt( ssl, level, __FILE__, __LINE__, text, crt )
68 mbedtls_debug_printf_ecdh( ssl, level, __FILE__, __LINE__, ecdh, attr )
168 void mbedtls_debug_print_msg( const mbedtls_ssl_context *ssl, int level,
187 void mbedtls_debug_print_ret( const mbedtls_ssl_context *ssl, int level,
208 void mbedtls_debug_print_buf( const mbedtls_ssl_context *ssl, int level,
[all …]
A Dssl.h1695 void mbedtls_ssl_init( mbedtls_ssl_context *ssl );
1717 int mbedtls_ssl_setup( mbedtls_ssl_context *ssl,
1863 void mbedtls_ssl_set_bio( mbedtls_ssl_context *ssl,
1957 int mbedtls_ssl_set_cid( mbedtls_ssl_context *ssl,
1999 int mbedtls_ssl_get_peer_cid( mbedtls_ssl_context *ssl,
2067 void mbedtls_ssl_set_verify( mbedtls_ssl_context *ssl,
3057 int mbedtls_ssl_set_hs_psk( mbedtls_ssl_context *ssl,
4080 int mbedtls_ssl_handshake( mbedtls_ssl_context *ssl );
4311 void mbedtls_ssl_free( mbedtls_ssl_context *ssl );
4362 int mbedtls_ssl_context_save( mbedtls_ssl_context *ssl,
[all …]

Completed in 90 milliseconds

123