Lines Matching refs:mbedtls_ssl_context
57 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 );
163 static int ssl_buffer_future_record( mbedtls_ssl_context *ssl,
165 static int ssl_next_record_is_in_datagram( mbedtls_ssl_context *ssl );
167 static size_t ssl_get_maximum_datagram_size( mbedtls_ssl_context const *ssl ) in ssl_get_maximum_datagram_size()
182 static int ssl_get_remaining_space_in_datagram( mbedtls_ssl_context const *ssl ) in ssl_get_remaining_space_in_datagram()
198 static int ssl_get_remaining_payload_in_datagram( mbedtls_ssl_context const *ssl ) in ssl_get_remaining_payload_in_datagram()
249 static int ssl_double_retransmit_timeout( mbedtls_ssl_context *ssl ) in ssl_double_retransmit_timeout()
284 static void ssl_reset_retransmit_timeout( mbedtls_ssl_context *ssl ) in ssl_reset_retransmit_timeout()
519 int mbedtls_ssl_encrypt_buf( mbedtls_ssl_context *ssl, in mbedtls_ssl_encrypt_buf()
995 int mbedtls_ssl_decrypt_buf( mbedtls_ssl_context const *ssl, in mbedtls_ssl_decrypt_buf()
1563 int mbedtls_ssl_fetch_input( mbedtls_ssl_context *ssl, size_t nb_want ) in mbedtls_ssl_fetch_input()
1784 int mbedtls_ssl_flush_output( mbedtls_ssl_context *ssl ) in mbedtls_ssl_flush_output()
1854 static int ssl_flight_append( mbedtls_ssl_context *ssl ) in ssl_flight_append()
1920 static int ssl_swap_epochs( mbedtls_ssl_context *ssl ) in ssl_swap_epochs()
1954 int mbedtls_ssl_resend( mbedtls_ssl_context *ssl ) in mbedtls_ssl_resend()
1974 int mbedtls_ssl_flight_transmit( mbedtls_ssl_context *ssl ) in mbedtls_ssl_flight_transmit()
2139 void mbedtls_ssl_recv_flight_completed( mbedtls_ssl_context *ssl ) in mbedtls_ssl_recv_flight_completed()
2170 void mbedtls_ssl_send_flight_completed( mbedtls_ssl_context *ssl ) in mbedtls_ssl_send_flight_completed()
2211 int mbedtls_ssl_write_handshake_msg_ext( mbedtls_ssl_context *ssl, in mbedtls_ssl_write_handshake_msg_ext()
2363 int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, uint8_t force_flush ) in mbedtls_ssl_write_record()
2521 static int ssl_hs_is_proper_fragment( mbedtls_ssl_context *ssl ) in ssl_hs_is_proper_fragment()
2532 static uint32_t ssl_get_hs_frag_len( mbedtls_ssl_context const *ssl ) in ssl_get_hs_frag_len()
2539 static uint32_t ssl_get_hs_frag_off( mbedtls_ssl_context const *ssl ) in ssl_get_hs_frag_off()
2546 static int ssl_check_hs_header( mbedtls_ssl_context const *ssl ) in ssl_check_hs_header()
2644 static uint32_t ssl_get_hs_total_len( mbedtls_ssl_context const *ssl ) in ssl_get_hs_total_len()
2651 int mbedtls_ssl_prepare_handshake_record( mbedtls_ssl_context *ssl ) in mbedtls_ssl_prepare_handshake_record()
2743 void mbedtls_ssl_update_handshake_status( mbedtls_ssl_context *ssl ) in mbedtls_ssl_update_handshake_status()
2795 void mbedtls_ssl_dtls_replay_reset( mbedtls_ssl_context *ssl ) in mbedtls_ssl_dtls_replay_reset()
2811 static int mbedtls_ssl_dtls_record_replay_check( mbedtls_ssl_context *ssl, uint8_t *record_in_ctr ) in mbedtls_ssl_dtls_record_replay_check()
2822 ret = mbedtls_ssl_dtls_replay_check( (mbedtls_ssl_context const *) ssl ); in mbedtls_ssl_dtls_record_replay_check()
2833 int mbedtls_ssl_dtls_replay_check( mbedtls_ssl_context const *ssl ) in mbedtls_ssl_dtls_replay_check()
2858 void mbedtls_ssl_dtls_replay_update( mbedtls_ssl_context *ssl ) in mbedtls_ssl_dtls_replay_update()
3034 static int ssl_handle_possible_reconnect( mbedtls_ssl_context *ssl ) in ssl_handle_possible_reconnect()
3123 static int ssl_parse_record_header( mbedtls_ssl_context const *ssl, in ssl_parse_record_header()
3341 else if( mbedtls_ssl_dtls_record_replay_check( (mbedtls_ssl_context *) ssl, in ssl_parse_record_header()
3356 static int ssl_check_client_reconnect( mbedtls_ssl_context *ssl ) in ssl_check_client_reconnect()
3385 static int ssl_prepare_record_content( mbedtls_ssl_context *ssl, in ssl_prepare_record_content()
3537 static int ssl_consume_current_message( mbedtls_ssl_context *ssl );
3538 static int ssl_get_next_record( mbedtls_ssl_context *ssl );
3539 static int ssl_record_is_in_progress( mbedtls_ssl_context *ssl );
3541 int mbedtls_ssl_read_record( mbedtls_ssl_context *ssl, in mbedtls_ssl_read_record()
3626 static int ssl_next_record_is_in_datagram( mbedtls_ssl_context *ssl ) in ssl_next_record_is_in_datagram()
3634 static int ssl_load_buffered_message( mbedtls_ssl_context *ssl ) in ssl_load_buffered_message()
3731 static int ssl_buffer_make_space( mbedtls_ssl_context *ssl, in ssl_buffer_make_space()
3773 static int ssl_buffer_message( mbedtls_ssl_context *ssl ) in ssl_buffer_message()
3977 static int ssl_consume_current_message( mbedtls_ssl_context *ssl ) in ssl_consume_current_message()
4064 static int ssl_record_is_in_progress( mbedtls_ssl_context *ssl ) in ssl_record_is_in_progress()
4074 static void ssl_free_buffered_record( mbedtls_ssl_context *ssl ) in ssl_free_buffered_record()
4090 static int ssl_load_buffered_record( mbedtls_ssl_context *ssl ) in ssl_load_buffered_record()
4147 static int ssl_buffer_future_record( mbedtls_ssl_context *ssl, in ssl_buffer_future_record()
4205 static int ssl_get_next_record( mbedtls_ssl_context *ssl ) in ssl_get_next_record()
4411 int mbedtls_ssl_handle_message_type( mbedtls_ssl_context *ssl ) in mbedtls_ssl_handle_message_type()
4547 int mbedtls_ssl_send_fatal_handshake_failure( mbedtls_ssl_context *ssl ) in mbedtls_ssl_send_fatal_handshake_failure()
4554 int mbedtls_ssl_send_alert_message( mbedtls_ssl_context *ssl, in mbedtls_ssl_send_alert_message()
4581 int mbedtls_ssl_write_change_cipher_spec( mbedtls_ssl_context *ssl ) in mbedtls_ssl_write_change_cipher_spec()
4604 int mbedtls_ssl_parse_change_cipher_spec( mbedtls_ssl_context *ssl ) in mbedtls_ssl_parse_change_cipher_spec()
4681 void mbedtls_ssl_update_out_pointers( mbedtls_ssl_context *ssl, in mbedtls_ssl_update_out_pointers()
4722 void mbedtls_ssl_update_in_pointers( mbedtls_ssl_context *ssl ) in mbedtls_ssl_update_in_pointers()
4769 void mbedtls_ssl_reset_in_out_pointers( mbedtls_ssl_context *ssl ) in mbedtls_ssl_reset_in_out_pointers()
4794 size_t mbedtls_ssl_get_bytes_avail( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_bytes_avail()
4799 int mbedtls_ssl_check_pending( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_check_pending()
4855 int mbedtls_ssl_get_record_expansion( const mbedtls_ssl_context *ssl ) in mbedtls_ssl_get_record_expansion()
4913 static int ssl_check_ctr_renegotiate( mbedtls_ssl_context *ssl ) in ssl_check_ctr_renegotiate()
4952 static int ssl_handle_hs_message_post_handshake( mbedtls_ssl_context *ssl ) in ssl_handle_hs_message_post_handshake()
5050 int mbedtls_ssl_read( mbedtls_ssl_context *ssl, unsigned char *buf, size_t len ) in mbedtls_ssl_read()
5269 static int ssl_write_real( mbedtls_ssl_context *ssl, in ssl_write_real()
5335 int mbedtls_ssl_write( mbedtls_ssl_context *ssl, const unsigned char *buf, size_t len ) in mbedtls_ssl_write()
5371 int mbedtls_ssl_close_notify( mbedtls_ssl_context *ssl ) in mbedtls_ssl_close_notify()
5415 void mbedtls_ssl_set_inbound_transform( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_inbound_transform()
5422 void mbedtls_ssl_set_outbound_transform( mbedtls_ssl_context *ssl, in mbedtls_ssl_set_outbound_transform()
5431 void mbedtls_ssl_buffering_free( mbedtls_ssl_context *ssl ) in mbedtls_ssl_buffering_free()
5445 static void ssl_buffering_free_slot( mbedtls_ssl_context *ssl, in ssl_buffering_free_slot()
5523 int mbedtls_ssl_handle_pending_alert( mbedtls_ssl_context *ssl ) in mbedtls_ssl_handle_pending_alert()
5552 void mbedtls_ssl_pend_fatal_alert( mbedtls_ssl_context *ssl, in mbedtls_ssl_pend_fatal_alert()