• Home
  • Raw
  • Download

Lines Matching defs:ssl

86 static inline size_t ssl_ep_len( const mbedtls_ssl_context *ssl )  in ssl_ep_len()
101 static void ssl_set_timer( mbedtls_ssl_context *ssl, uint32_t millisecs ) in ssl_set_timer()
113 static int ssl_check_timer( mbedtls_ssl_context *ssl ) in ssl_check_timer()
149 static size_t ssl_get_maximum_datagram_size( mbedtls_ssl_context const *ssl ) in ssl_get_maximum_datagram_size()
159 static int ssl_get_remaining_space_in_datagram( mbedtls_ssl_context const *ssl ) in ssl_get_remaining_space_in_datagram()
175 static int ssl_get_remaining_payload_in_datagram( mbedtls_ssl_context const *ssl ) in ssl_get_remaining_payload_in_datagram()
226 static int ssl_double_retransmit_timeout( mbedtls_ssl_context *ssl ) in ssl_double_retransmit_timeout()
261 static void ssl_reset_retransmit_timeout( mbedtls_ssl_context *ssl ) in ssl_reset_retransmit_timeout()
639 int mbedtls_ssl_derive_keys( mbedtls_ssl_context *ssl ) in mbedtls_ssl_derive_keys()
1149 void ssl_calc_verify_ssl( mbedtls_ssl_context *ssl, unsigned char *hash ) in ssl_calc_verify_ssl()
1198 void ssl_calc_verify_tls( mbedtls_ssl_context *ssl, unsigned char *hash ) in ssl_calc_verify_tls()
1226 void ssl_calc_verify_tls_sha256( mbedtls_ssl_context *ssl, unsigned char *hash ) in ssl_calc_verify_tls_sha256()
1247 void ssl_calc_verify_tls_sha384( mbedtls_ssl_context *ssl, unsigned char *hash ) in ssl_calc_verify_tls_sha384()
1269 int mbedtls_ssl_psk_derive_premaster( mbedtls_ssl_context *ssl, mbedtls_key_exchange_type_t key_ex ) in mbedtls_ssl_psk_derive_premaster()
1445 static int ssl_encrypt_buf( mbedtls_ssl_context *ssl ) in ssl_encrypt_buf()
1942 static int ssl_decrypt_buf( mbedtls_ssl_context *ssl ) in ssl_decrypt_buf()
2488 static int ssl_compress_buf( mbedtls_ssl_context *ssl ) in ssl_compress_buf()
2535 static int ssl_decompress_buf( mbedtls_ssl_context *ssl ) in ssl_decompress_buf()
2588 static int ssl_resend_hello_request( mbedtls_ssl_context *ssl ) in ssl_resend_hello_request()
2630 int mbedtls_ssl_fetch_input( mbedtls_ssl_context *ssl, size_t nb_want ) in mbedtls_ssl_fetch_input()
2849 int mbedtls_ssl_flush_output( mbedtls_ssl_context *ssl ) in mbedtls_ssl_flush_output()
2918 static int ssl_flight_append( mbedtls_ssl_context *ssl ) in ssl_flight_append()
2987 static int ssl_swap_epochs( mbedtls_ssl_context *ssl ) in ssl_swap_epochs()
3033 int mbedtls_ssl_resend( mbedtls_ssl_context *ssl ) in mbedtls_ssl_resend()
3053 int mbedtls_ssl_flight_transmit( mbedtls_ssl_context *ssl ) in mbedtls_ssl_flight_transmit()
3215 void mbedtls_ssl_recv_flight_completed( mbedtls_ssl_context *ssl ) in mbedtls_ssl_recv_flight_completed()
3246 void mbedtls_ssl_send_flight_completed( mbedtls_ssl_context *ssl ) in mbedtls_ssl_send_flight_completed()
3287 int mbedtls_ssl_write_handshake_msg( mbedtls_ssl_context *ssl ) in mbedtls_ssl_write_handshake_msg()
3446 int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush ) in mbedtls_ssl_write_record()
3592 static int ssl_hs_is_proper_fragment( mbedtls_ssl_context *ssl ) in ssl_hs_is_proper_fragment()
3603 static uint32_t ssl_get_hs_frag_len( mbedtls_ssl_context const *ssl ) in ssl_get_hs_frag_len()
3610 static uint32_t ssl_get_hs_frag_off( mbedtls_ssl_context const *ssl ) in ssl_get_hs_frag_off()
3617 static int ssl_check_hs_header( mbedtls_ssl_context const *ssl ) in ssl_check_hs_header()
3715 static uint32_t ssl_get_hs_total_len( mbedtls_ssl_context const *ssl ) in ssl_get_hs_total_len()
3722 int mbedtls_ssl_prepare_handshake_record( mbedtls_ssl_context *ssl ) in mbedtls_ssl_prepare_handshake_record()
3814 void mbedtls_ssl_update_handshake_status( mbedtls_ssl_context *ssl ) in mbedtls_ssl_update_handshake_status()
3866 static void ssl_dtls_replay_reset( mbedtls_ssl_context *ssl ) in ssl_dtls_replay_reset()
3885 int mbedtls_ssl_dtls_replay_check( mbedtls_ssl_context *ssl ) in mbedtls_ssl_dtls_replay_check()
3910 void mbedtls_ssl_dtls_replay_update( mbedtls_ssl_context *ssl ) in mbedtls_ssl_dtls_replay_update()
4092 static int ssl_handle_possible_reconnect( mbedtls_ssl_context *ssl ) in ssl_handle_possible_reconnect()
4158 static int ssl_parse_record_header( mbedtls_ssl_context *ssl ) in ssl_parse_record_header()
4343 static int ssl_prepare_record_content( mbedtls_ssl_context *ssl ) in ssl_prepare_record_content()
4421 int mbedtls_ssl_read_record( mbedtls_ssl_context *ssl, in mbedtls_ssl_read_record()
4506 static int ssl_next_record_is_in_datagram( mbedtls_ssl_context *ssl ) in ssl_next_record_is_in_datagram()
4514 static int ssl_load_buffered_message( mbedtls_ssl_context *ssl ) in ssl_load_buffered_message()
4611 static int ssl_buffer_make_space( mbedtls_ssl_context *ssl, in ssl_buffer_make_space()
4653 static int ssl_buffer_message( mbedtls_ssl_context *ssl ) in ssl_buffer_message()
4846 static int ssl_consume_current_message( mbedtls_ssl_context *ssl ) in ssl_consume_current_message()
4933 static int ssl_record_is_in_progress( mbedtls_ssl_context *ssl ) in ssl_record_is_in_progress()
4943 static void ssl_free_buffered_record( mbedtls_ssl_context *ssl ) in ssl_free_buffered_record()
4959 static int ssl_load_buffered_record( mbedtls_ssl_context *ssl ) in ssl_load_buffered_record()
5013 static int ssl_buffer_future_record( mbedtls_ssl_context *ssl ) in ssl_buffer_future_record()
5070 static int ssl_get_next_record( mbedtls_ssl_context *ssl ) in ssl_get_next_record()
5224 int mbedtls_ssl_handle_message_type( mbedtls_ssl_context *ssl ) in mbedtls_ssl_handle_message_type()
5342 int mbedtls_ssl_send_fatal_handshake_failure( mbedtls_ssl_context *ssl ) in mbedtls_ssl_send_fatal_handshake_failure()
5356 int mbedtls_ssl_send_alert_message( mbedtls_ssl_context *ssl, in mbedtls_ssl_send_alert_message()
5394 int mbedtls_ssl_write_certificate( mbedtls_ssl_context *ssl ) in mbedtls_ssl_write_certificate()
5414 int mbedtls_ssl_parse_certificate( mbedtls_ssl_context *ssl ) in mbedtls_ssl_parse_certificate()
5437 int mbedtls_ssl_write_certificate( mbedtls_ssl_context *ssl ) in mbedtls_ssl_write_certificate()
5557 static int ssl_parse_certificate_chain( mbedtls_ssl_context *ssl ) in ssl_parse_certificate_chain()
5756 int mbedtls_ssl_parse_certificate( mbedtls_ssl_context *ssl ) in mbedtls_ssl_parse_certificate()
5990 int mbedtls_ssl_write_change_cipher_spec( mbedtls_ssl_context *ssl ) in mbedtls_ssl_write_change_cipher_spec()
6013 int mbedtls_ssl_parse_change_cipher_spec( mbedtls_ssl_context *ssl ) in mbedtls_ssl_parse_change_cipher_spec()
6086 void mbedtls_ssl_optimize_checksum( mbedtls_ssl_context *ssl, in mbedtls_ssl_optimize_checksum()
6115 void mbedtls_ssl_reset_checksum( mbedtls_ssl_context *ssl ) in mbedtls_ssl_reset_checksum()
6132 static void ssl_update_checksum_start( mbedtls_ssl_context *ssl, in ssl_update_checksum_start()
6152 static void ssl_update_checksum_md5sha1( mbedtls_ssl_context *ssl, in ssl_update_checksum_md5sha1()
6162 static void ssl_update_checksum_sha256( mbedtls_ssl_context *ssl, in ssl_update_checksum_sha256()
6170 static void ssl_update_checksum_sha384( mbedtls_ssl_context *ssl, in ssl_update_checksum_sha384()
6180 mbedtls_ssl_context *ssl, unsigned char *buf, int from ) in ssl_calc_finished_ssl()
6265 mbedtls_ssl_context *ssl, unsigned char *buf, int from ) in ssl_calc_finished_tls()
6325 mbedtls_ssl_context *ssl, unsigned char *buf, int from ) in ssl_calc_finished_tls_sha256()
6375 mbedtls_ssl_context *ssl, unsigned char *buf, int from ) in ssl_calc_finished_tls_sha384()
6434 static void ssl_handshake_wrapup_free_hs_transform( mbedtls_ssl_context *ssl ) in ssl_handshake_wrapup_free_hs_transform()
6459 void mbedtls_ssl_handshake_wrapup( mbedtls_ssl_context *ssl ) in mbedtls_ssl_handshake_wrapup()
6521 int mbedtls_ssl_write_finished( mbedtls_ssl_context *ssl ) in mbedtls_ssl_write_finished()
6645 int mbedtls_ssl_parse_finished( mbedtls_ssl_context *ssl ) in mbedtls_ssl_parse_finished()
6792 static int ssl_handshake_init( mbedtls_ssl_context *ssl ) in ssl_handshake_init()
6898 static void ssl_update_out_pointers( mbedtls_ssl_context *ssl, in ssl_update_out_pointers()
6934 static void ssl_update_in_pointers( mbedtls_ssl_context *ssl, in ssl_update_in_pointers()
6965 void mbedtls_ssl_init( mbedtls_ssl_context *ssl ) in mbedtls_ssl_init()
6974 static void ssl_reset_in_out_pointers( mbedtls_ssl_context *ssl ) in ssl_reset_in_out_pointers()
6995 int mbedtls_ssl_setup( mbedtls_ssl_context *ssl, in mbedtls_ssl_setup()
7063 static int ssl_session_reset_int( mbedtls_ssl_context *ssl, int partial ) in ssl_session_reset_int()
7182 int mbedtls_ssl_session_reset( mbedtls_ssl_context *ssl ) in mbedtls_ssl_session_reset()
7216 void mbedtls_ssl_set_datagram_packing( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_datagram_packing()
7261 void mbedtls_ssl_set_bio( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_bio()
7274 void mbedtls_ssl_set_mtu( mbedtls_ssl_context *ssl, uint16_t mtu ) in mbedtls_ssl_set_mtu()
7285 void mbedtls_ssl_set_timer_cb( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_timer_cb()
7311 int mbedtls_ssl_set_session( mbedtls_ssl_context *ssl, const mbedtls_ssl_session *session ) in mbedtls_ssl_set_session()
7409 int mbedtls_ssl_set_hs_own_cert( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_hs_own_cert()
7417 void mbedtls_ssl_set_hs_ca_chain( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_hs_ca_chain()
7425 void mbedtls_ssl_set_hs_authmode( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_hs_authmode()
7436 int mbedtls_ssl_set_hs_ecjpake_password( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_hs_ecjpake_password()
7510 int mbedtls_ssl_set_hs_psk( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_hs_psk()
7632 int mbedtls_ssl_set_hostname( mbedtls_ssl_context *ssl, const char *hostname ) in mbedtls_ssl_set_hostname()
7716 const char *mbedtls_ssl_get_alpn_protocol( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_alpn_protocol()
7874 void *mbedtls_ssl_get_async_operation_data( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_async_operation_data()
7882 void mbedtls_ssl_set_async_operation_data( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_async_operation_data()
7893 size_t mbedtls_ssl_get_bytes_avail( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_bytes_avail()
7898 int mbedtls_ssl_check_pending( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_check_pending()
7953 uint32_t mbedtls_ssl_get_verify_result( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_verify_result()
7964 const char *mbedtls_ssl_get_ciphersuite( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_ciphersuite()
7972 const char *mbedtls_ssl_get_version( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_version()
8010 int mbedtls_ssl_get_record_expansion( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_record_expansion()
8064 size_t mbedtls_ssl_get_max_frag_len( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_max_frag_len()
8092 static size_t ssl_get_current_mtu( const mbedtls_ssl_context *ssl ) in ssl_get_current_mtu()
8111 int mbedtls_ssl_get_max_out_record_payload( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_max_out_record_payload()
8157 const mbedtls_x509_crt *mbedtls_ssl_get_peer_cert( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_peer_cert()
8167 int mbedtls_ssl_get_session( const mbedtls_ssl_context *ssl, mbedtls_ssl_session *dst ) in mbedtls_ssl_get_session()
8184 int mbedtls_ssl_handshake_step( mbedtls_ssl_context *ssl ) in mbedtls_ssl_handshake_step()
8206 int mbedtls_ssl_handshake( mbedtls_ssl_context *ssl ) in mbedtls_ssl_handshake()
8233 static int ssl_write_hello_request( mbedtls_ssl_context *ssl ) in ssl_write_hello_request()
8264 static int ssl_start_renegotiation( mbedtls_ssl_context *ssl ) in ssl_start_renegotiation()
8304 int mbedtls_ssl_renegotiate( mbedtls_ssl_context *ssl ) in mbedtls_ssl_renegotiate()
8360 static int ssl_check_ctr_renegotiate( mbedtls_ssl_context *ssl ) in ssl_check_ctr_renegotiate()
8391 int mbedtls_ssl_read( mbedtls_ssl_context *ssl, unsigned char *buf, size_t len ) in mbedtls_ssl_read()
8708 static int ssl_write_real( mbedtls_ssl_context *ssl, in ssl_write_real()
8778 static int ssl_write_split( mbedtls_ssl_context *ssl, in ssl_write_split()
8811 int mbedtls_ssl_write( mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len ) in mbedtls_ssl_write()
8851 int mbedtls_ssl_close_notify( mbedtls_ssl_context *ssl ) in mbedtls_ssl_close_notify()
8914 static void ssl_buffering_free( mbedtls_ssl_context *ssl ) in ssl_buffering_free()
8928 static void ssl_buffering_free_slot( mbedtls_ssl_context *ssl, in ssl_buffering_free_slot()
8948 void mbedtls_ssl_handshake_free( mbedtls_ssl_context *ssl ) in mbedtls_ssl_handshake_free()
9062 void mbedtls_ssl_free( mbedtls_ssl_context *ssl ) in mbedtls_ssl_free()
9557 int mbedtls_ssl_check_curve( const mbedtls_ssl_context *ssl, mbedtls_ecp_group_id grp_id ) in mbedtls_ssl_check_curve()
9577 int mbedtls_ssl_check_sig_hash( const mbedtls_ssl_context *ssl, in mbedtls_ssl_check_sig_hash()
9737 int mbedtls_ssl_set_calc_verify_md( mbedtls_ssl_context *ssl, int md ) in mbedtls_ssl_set_calc_verify_md()
9781 int mbedtls_ssl_get_key_exchange_md_ssl_tls( mbedtls_ssl_context *ssl, in mbedtls_ssl_get_key_exchange_md_ssl_tls()
9867 int mbedtls_ssl_get_key_exchange_md_tls1_2( mbedtls_ssl_context *ssl, in mbedtls_ssl_get_key_exchange_md_tls1_2()