Home
last modified time | relevance | path

Searched refs:mbedtls_ssl_context (Results 1 – 25 of 43) sorted by relevance

12

/third_party/mbedtls/library/
Dssl_misc.h327 size_t mbedtls_ssl_get_output_max_frag_len( const mbedtls_ssl_context *ssl );
343 size_t mbedtls_ssl_get_input_max_frag_len( const mbedtls_ssl_context *ssl );
347 static inline size_t mbedtls_ssl_get_output_buflen( const mbedtls_ssl_context *ctx ) in mbedtls_ssl_get_output_buflen()
359 static inline size_t mbedtls_ssl_get_input_buflen( const mbedtls_ssl_context *ctx ) in mbedtls_ssl_get_input_buflen()
576 void (*update_checksum)(mbedtls_ssl_context *, const unsigned char *, size_t);
577 void (*calc_verify)(const mbedtls_ssl_context *, unsigned char *, size_t *);
578 void (*calc_finished)(mbedtls_ssl_context *, unsigned char *, int);
1076 void mbedtls_ssl_handshake_free( mbedtls_ssl_context *ssl );
1079 void mbedtls_ssl_set_inbound_transform( mbedtls_ssl_context *ssl,
1083 void mbedtls_ssl_set_outbound_transform( mbedtls_ssl_context *ssl,
[all …]
Dssl_tls13_client.c48 static int ssl_tls13_write_supported_versions_ext( mbedtls_ssl_context *ssl, in ssl_tls13_write_supported_versions_ext()
96 static int ssl_tls13_parse_supported_versions_ext( mbedtls_ssl_context *ssl, in ssl_tls13_parse_supported_versions_ext()
140 static int ssl_tls13_write_named_group_list_ecdhe( mbedtls_ssl_context *ssl, in ssl_tls13_write_named_group_list_ecdhe()
177 static int ssl_tls13_write_named_group_list_ecdhe( mbedtls_ssl_context *ssl, in ssl_tls13_write_named_group_list_ecdhe()
190 static int ssl_tls13_write_named_group_list_dhe( mbedtls_ssl_context *ssl, in ssl_tls13_write_named_group_list_dhe()
203 static int ssl_tls13_write_supported_groups_ext( mbedtls_ssl_context *ssl, in ssl_tls13_write_supported_groups_ext()
280 mbedtls_ssl_context *ssl, in ssl_tls13_generate_and_write_ecdh_key_exchange()
317 static int ssl_tls13_get_default_group_id( mbedtls_ssl_context *ssl, in ssl_tls13_get_default_group_id()
366 static int ssl_tls13_write_key_share_ext( mbedtls_ssl_context *ssl, in ssl_tls13_write_key_share_ext()
476 static int ssl_tls13_check_ecdh_params( const mbedtls_ssl_context *ssl ) in ssl_tls13_check_ecdh_params()
[all …]
Dssl_tls13_generic.c38 int mbedtls_ssl_tls13_fetch_handshake_msg( mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_fetch_handshake_msg()
76 int mbedtls_ssl_tls13_start_handshake_msg( mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_start_handshake_msg()
97 int mbedtls_ssl_tls13_finish_handshake_msg( mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_finish_handshake_msg()
114 void mbedtls_ssl_tls13_add_hs_msg_to_checksum( mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_add_hs_msg_to_checksum()
123 void mbedtls_ssl_tls13_add_hs_hdr_to_checksum( mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_add_hs_hdr_to_checksum()
157 int mbedtls_ssl_tls13_write_sig_alg_ext( mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_write_sig_alg_ext()
296 static int ssl_tls13_sig_alg_is_offered( const mbedtls_ssl_context *ssl, in ssl_tls13_sig_alg_is_offered()
309 static int ssl_tls13_parse_certificate_verify( mbedtls_ssl_context *ssl, in ssl_tls13_parse_certificate_verify()
478 int mbedtls_ssl_tls13_process_certificate_verify( mbedtls_ssl_context *ssl ) in mbedtls_ssl_tls13_process_certificate_verify()
582 static int ssl_tls13_parse_certificate( mbedtls_ssl_context *ssl, in ssl_tls13_parse_certificate()
[all …]
Dssl_tls13_keys.h484 int mbedtls_ssl_tls13_create_psk_binder( mbedtls_ssl_context *ssl,
522 mbedtls_ssl_context *ssl );
544 int mbedtls_ssl_tls13_key_schedule_stage_early( mbedtls_ssl_context *ssl );
562 int mbedtls_ssl_tls13_key_schedule_stage_handshake( mbedtls_ssl_context *ssl );
576 int mbedtls_ssl_tls13_generate_handshake_keys( mbedtls_ssl_context *ssl,
595 int mbedtls_ssl_tls13_key_schedule_stage_application( mbedtls_ssl_context *ssl );
610 mbedtls_ssl_context* ssl, mbedtls_ssl_key_set *traffic_keys );
634 int mbedtls_ssl_tls13_calculate_verify_data( mbedtls_ssl_context *ssl,
Dssl_msg.c57 static uint32_t ssl_get_hs_total_len( mbedtls_ssl_context const *ssl );
63 void mbedtls_ssl_set_timer( mbedtls_ssl_context *ssl, uint32_t millisecs ) in mbedtls_ssl_set_timer()
75 int mbedtls_ssl_check_timer( mbedtls_ssl_context *ssl ) in mbedtls_ssl_check_timer()
89 static int ssl_parse_record_header( mbedtls_ssl_context const *ssl,
94 int mbedtls_ssl_check_record( mbedtls_ssl_context const *ssl, in mbedtls_ssl_check_record()
157 static void ssl_buffering_free_slot( mbedtls_ssl_context *ssl,
159 static void ssl_free_buffered_record( mbedtls_ssl_context *ssl );
160 static int ssl_load_buffered_message( mbedtls_ssl_context *ssl );
161 static int ssl_load_buffered_record( mbedtls_ssl_context *ssl );
162 static int ssl_buffer_message( mbedtls_ssl_context *ssl );
[all …]
Ddebug.c59 static inline void debug_send_line( const mbedtls_ssl_context *ssl, int level, in debug_send_line()
78 void mbedtls_debug_print_msg( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_msg()
107 void mbedtls_debug_print_ret( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_ret()
135 void mbedtls_debug_print_buf( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_buf()
195 void mbedtls_debug_print_ecp( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_ecp()
218 void mbedtls_debug_print_mpi( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_mpi()
276 static void debug_print_pk( const mbedtls_ssl_context *ssl, int level, in debug_print_pk()
314 static void debug_print_line_by_line( const mbedtls_ssl_context *ssl, int level, in debug_print_line_by_line()
339 void mbedtls_debug_print_crt( const mbedtls_ssl_context *ssl, int level, in mbedtls_debug_print_crt()
373 static void mbedtls_debug_printf_ecdh_internal( const mbedtls_ssl_context *ssl, in mbedtls_debug_printf_ecdh_internal()
[all …]
Dssl_tls.c78 int mbedtls_ssl_set_cid( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_cid()
111 int mbedtls_ssl_get_peer_cid( mbedtls_ssl_context *ssl, in mbedtls_ssl_get_peer_cid()
265 static void handle_buffer_resizing( mbedtls_ssl_context *ssl, int downsizing, in handle_buffer_resizing()
575 static void ssl_update_checksum_start( mbedtls_ssl_context *, const unsigned char *, size_t );
579 static void ssl_update_checksum_sha256( mbedtls_ssl_context *, const unsigned char *, size_t );
580 static void ssl_calc_verify_tls_sha256( const mbedtls_ssl_context *,unsigned char*, size_t * );
581 static void ssl_calc_finished_tls_sha256( mbedtls_ssl_context *,unsigned char *, int );
585 static void ssl_update_checksum_sha384( mbedtls_ssl_context *, const unsigned char *, size_t );
586 static void ssl_calc_verify_tls_sha384( const mbedtls_ssl_context *, unsigned char*, size_t * );
587 static void ssl_calc_finished_tls_sha384( mbedtls_ssl_context *, unsigned char *, int );
[all …]
Dssl_cli.c94 int mbedtls_ssl_write_hostname_ext( mbedtls_ssl_context *ssl, in mbedtls_ssl_write_hostname_ext()
164 static int ssl_write_renegotiation_ext( mbedtls_ssl_context *ssl, in ssl_write_renegotiation_ext()
207 static int ssl_write_signature_algorithms_ext( mbedtls_ssl_context *ssl, in ssl_write_signature_algorithms_ext()
305 static int ssl_write_supported_elliptic_curves_ext( mbedtls_ssl_context *ssl, in ssl_write_supported_elliptic_curves_ext()
368 static int ssl_write_supported_point_formats_ext( mbedtls_ssl_context *ssl, in ssl_write_supported_point_formats_ext()
399 static int ssl_write_ecjpake_kkpp_ext( mbedtls_ssl_context *ssl, in ssl_write_ecjpake_kkpp_ext()
472 static int ssl_write_cid_ext( mbedtls_ssl_context *ssl, in ssl_write_cid_ext()
518 static int ssl_write_max_fragment_length_ext( mbedtls_ssl_context *ssl, in ssl_write_max_fragment_length_ext()
550 static int ssl_write_encrypt_then_mac_ext( mbedtls_ssl_context *ssl, in ssl_write_encrypt_then_mac_ext()
580 static int ssl_write_extended_ms_ext( mbedtls_ssl_context *ssl, in ssl_write_extended_ms_ext()
[all …]
Dssl_srv.c51 int mbedtls_ssl_set_client_transport_id( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_client_transport_id()
81 static int ssl_parse_servername_ext( mbedtls_ssl_context *ssl, in ssl_parse_servername_ext()
170 static int ssl_use_opaque_psk( mbedtls_ssl_context const *ssl ) in ssl_use_opaque_psk()
191 static int ssl_parse_renegotiation_info( mbedtls_ssl_context *ssl, in ssl_parse_renegotiation_info()
242 static int ssl_parse_signature_algorithms_ext( mbedtls_ssl_context *ssl, in ssl_parse_signature_algorithms_ext()
320 static int ssl_parse_supported_elliptic_curves( mbedtls_ssl_context *ssl, in ssl_parse_supported_elliptic_curves()
386 static int ssl_parse_supported_point_formats( mbedtls_ssl_context *ssl, in ssl_parse_supported_point_formats()
429 static int ssl_parse_ecjpake_kkpp( mbedtls_ssl_context *ssl, in ssl_parse_ecjpake_kkpp()
458 static int ssl_parse_max_fragment_length_ext( mbedtls_ssl_context *ssl, in ssl_parse_max_fragment_length_ext()
477 static int ssl_parse_cid_ext( mbedtls_ssl_context *ssl, in ssl_parse_cid_ext()
[all …]
Dssl_tls13_keys.c567 int mbedtls_ssl_tls13_key_schedule_stage_application( mbedtls_ssl_context *ssl ) in mbedtls_ssl_tls13_key_schedule_stage_application()
646 int mbedtls_ssl_tls13_calculate_verify_data( mbedtls_ssl_context* ssl, in mbedtls_ssl_tls13_calculate_verify_data()
711 int mbedtls_ssl_tls13_create_psk_binder( mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_create_psk_binder()
802 mbedtls_ssl_context *ssl /* DEBUG ONLY */ ) in mbedtls_ssl_tls13_populate_transform()
919 int mbedtls_ssl_tls13_key_schedule_stage_early( mbedtls_ssl_context *ssl ) in mbedtls_ssl_tls13_key_schedule_stage_early()
946 int mbedtls_ssl_tls13_generate_handshake_keys( mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_generate_handshake_keys()
1059 int mbedtls_ssl_tls13_key_schedule_stage_handshake( mbedtls_ssl_context *ssl ) in mbedtls_ssl_tls13_key_schedule_stage_handshake()
1129 mbedtls_ssl_context *ssl, in mbedtls_ssl_tls13_generate_application_keys()
Dssl_tls13_server.c31 int mbedtls_ssl_tls13_handshake_server_step( mbedtls_ssl_context *ssl ) in mbedtls_ssl_tls13_handshake_server_step()
/third_party/mbedtls/include/mbedtls/
Dssl.h763 typedef struct mbedtls_ssl_context mbedtls_ssl_context; typedef
900 typedef int mbedtls_ssl_async_sign_t( mbedtls_ssl_context *ssl,
966 typedef int mbedtls_ssl_async_decrypt_t( mbedtls_ssl_context *ssl,
1014 typedef int mbedtls_ssl_async_resume_t( mbedtls_ssl_context *ssl,
1036 typedef void mbedtls_ssl_async_cancel_t( mbedtls_ssl_context *ssl );
1301 int (*MBEDTLS_PRIVATE(f_sni))(void *, mbedtls_ssl_context *, const unsigned char *, size_t);
1313 int (*MBEDTLS_PRIVATE(f_psk))(void *, mbedtls_ssl_context *, const unsigned char *, size_t);
1451 struct mbedtls_ssl_context struct
1704 void mbedtls_ssl_init( mbedtls_ssl_context *ssl );
1726 int mbedtls_ssl_setup( mbedtls_ssl_context *ssl,
[all …]
Ddebug.h168 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,
229 void mbedtls_debug_print_mpi( const mbedtls_ssl_context *ssl, int level,
251 void mbedtls_debug_print_ecp( const mbedtls_ssl_context *ssl, int level,
272 void mbedtls_debug_print_crt( const mbedtls_ssl_context *ssl, int level,
301 void mbedtls_debug_printf_ecdh( const mbedtls_ssl_context *ssl, int level,
/third_party/mbedtls/tests/suites/
Dtest_suite_debug.function54 mbedtls_ssl_context ssl;
89 mbedtls_ssl_context ssl;
121 mbedtls_ssl_context ssl;
154 mbedtls_ssl_context ssl;
189 mbedtls_ssl_context ssl;
/third_party/lwip/src/apps/altcp_tls/
Daltcp_tls_mbedtls_structs.h67 mbedtls_ssl_context ssl_context;
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/platform/
Dssl_pm.c47 mbedtls_ssl_context ssl;
286 static int mbedtls_handshake( mbedtls_ssl_context *ssl ) in mbedtls_handshake()
896 int SSL_set_sni_callback(SSL *ssl, int(*cb)(void *, mbedtls_ssl_context *, in SSL_set_sni_callback() argument
907 SSL *SSL_SSL_from_mbedtls_ssl_context(mbedtls_ssl_context *msc) in SSL_SSL_from_mbedtls_ssl_context()
914 mbedtls_ssl_context *SSL_mbedtls_ssl_context_from_SSL(SSL *ssl) in SSL_mbedtls_ssl_context_from_SSL()
/third_party/mbedtls/programs/ssl/
Dssl_mail_client.c172 static int do_handshake( mbedtls_ssl_context *ssl ) in do_handshake()
233 static int write_ssl_data( mbedtls_ssl_context *ssl, unsigned char *buf, size_t len ) in write_ssl_data()
250 static int write_ssl_and_get_response( mbedtls_ssl_context *ssl, unsigned char *buf, size_t len ) in write_ssl_and_get_response()
378 mbedtls_ssl_context ssl; in main()
Dssl_test_lib.h125 mbedtls_ssl_context *ssl;
Dmini_client.c175 mbedtls_ssl_context ssl; in main()
/third_party/mbedtls/port/include/
Dtls_client.h36 mbedtls_ssl_context ssl;
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/include/openssl/
Dssl.h44 int SSL_set_sni_callback(SSL *ssl, int(*cb)(void *, mbedtls_ssl_context *,
52 SSL *SSL_SSL_from_mbedtls_ssl_context(mbedtls_ssl_context *msc);
54 mbedtls_ssl_context *SSL_mbedtls_ssl_context_from_SSL(SSL *ssl);
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-session.c77 mbedtls_ssl_context *msc; in lws_tls_reuse_session()
167 mbedtls_ssl_context *msc; in lws_tls_session_new_mbedtls()
/third_party/mbedtls/programs/fuzz/
Dfuzz_dtlsclient.c37 mbedtls_ssl_context ssl; in LLVMFuzzerTestOneInput()
Dfuzz_dtlsserver.c38 mbedtls_ssl_context ssl; in LLVMFuzzerTestOneInput()
Dfuzz_client.c41 mbedtls_ssl_context ssl; in LLVMFuzzerTestOneInput()

12