Lines Matching refs:handshake
253 if( ssl->handshake->retransmit_timeout >= ssl->conf->hs_timeout_max ) in ssl_double_retransmit_timeout()
262 if( ssl->handshake->retransmit_timeout != ssl->conf->hs_timeout_min ) in ssl_double_retransmit_timeout()
264 ssl->handshake->mtu = 508; in ssl_double_retransmit_timeout()
265 MBEDTLS_SSL_DEBUG_MSG( 2, ( "mtu autoreduction to %d bytes", ssl->handshake->mtu ) ); in ssl_double_retransmit_timeout()
268 new_timeout = 2 * ssl->handshake->retransmit_timeout; in ssl_double_retransmit_timeout()
271 if( new_timeout < ssl->handshake->retransmit_timeout || in ssl_double_retransmit_timeout()
277 ssl->handshake->retransmit_timeout = new_timeout; in ssl_double_retransmit_timeout()
279 (unsigned long) ssl->handshake->retransmit_timeout ) ); in ssl_double_retransmit_timeout()
286 ssl->handshake->retransmit_timeout = ssl->conf->hs_timeout_min; in ssl_reset_retransmit_timeout()
288 (unsigned long) ssl->handshake->retransmit_timeout ) ); in ssl_reset_retransmit_timeout()
1846 timeout = ssl->handshake->retransmit_timeout; in mbedtls_ssl_fetch_input()
2065 if( ssl->handshake->flight == NULL ) in ssl_flight_append()
2066 ssl->handshake->flight = msg; in ssl_flight_append()
2069 mbedtls_ssl_flight_item *cur = ssl->handshake->flight; in ssl_flight_append()
2106 if( ssl->transform_out == ssl->handshake->alt_transform_out ) in ssl_swap_epochs()
2116 ssl->transform_out = ssl->handshake->alt_transform_out; in ssl_swap_epochs()
2117 ssl->handshake->alt_transform_out = tmp_transform; in ssl_swap_epochs()
2121 memcpy( ssl->cur_out_ctr, ssl->handshake->alt_out_ctr, in ssl_swap_epochs()
2123 memcpy( ssl->handshake->alt_out_ctr, tmp_out_ctr, in ssl_swap_epochs()
2124 sizeof( ssl->handshake->alt_out_ctr ) ); in ssl_swap_epochs()
2160 if( ssl->handshake->retransmit_state != MBEDTLS_SSL_RETRANS_SENDING ) in mbedtls_ssl_flight_transmit()
2164 ssl->handshake->cur_msg = ssl->handshake->flight; in mbedtls_ssl_flight_transmit()
2165 ssl->handshake->cur_msg_p = ssl->handshake->flight->p + 12; in mbedtls_ssl_flight_transmit()
2170 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_SENDING; in mbedtls_ssl_flight_transmit()
2173 while( ssl->handshake->cur_msg != NULL ) in mbedtls_ssl_flight_transmit()
2176 const mbedtls_ssl_flight_item * const cur = ssl->handshake->cur_msg; in mbedtls_ssl_flight_transmit()
2188 if( is_finished && ssl->handshake->cur_msg_p == ( cur->p + 12 ) ) in mbedtls_ssl_flight_transmit()
2217 ssl->handshake->cur_msg_p += cur->len; in mbedtls_ssl_flight_transmit()
2221 const unsigned char * const p = ssl->handshake->cur_msg_p; in mbedtls_ssl_flight_transmit()
2274 ssl->handshake->cur_msg_p += cur_hs_frag_len; in mbedtls_ssl_flight_transmit()
2278 if( ssl->handshake->cur_msg_p >= cur->p + cur->len ) in mbedtls_ssl_flight_transmit()
2282 ssl->handshake->cur_msg = cur->next; in mbedtls_ssl_flight_transmit()
2283 ssl->handshake->cur_msg_p = cur->next->p + 12; in mbedtls_ssl_flight_transmit()
2287 ssl->handshake->cur_msg = NULL; in mbedtls_ssl_flight_transmit()
2288 ssl->handshake->cur_msg_p = NULL; in mbedtls_ssl_flight_transmit()
2305 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_FINISHED; in mbedtls_ssl_flight_transmit()
2308 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_WAITING; in mbedtls_ssl_flight_transmit()
2309 mbedtls_ssl_set_timer( ssl, ssl->handshake->retransmit_timeout ); in mbedtls_ssl_flight_transmit()
2323 mbedtls_ssl_flight_free( ssl->handshake->flight ); in mbedtls_ssl_recv_flight_completed()
2324 ssl->handshake->flight = NULL; in mbedtls_ssl_recv_flight_completed()
2325 ssl->handshake->cur_msg = NULL; in mbedtls_ssl_recv_flight_completed()
2328 ssl->handshake->in_flight_start_seq = ssl->handshake->in_msg_seq; in mbedtls_ssl_recv_flight_completed()
2331 ssl->handshake->buffering.seen_ccs = 0; in mbedtls_ssl_recv_flight_completed()
2342 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_FINISHED; in mbedtls_ssl_recv_flight_completed()
2345 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_PREPARING; in mbedtls_ssl_recv_flight_completed()
2354 mbedtls_ssl_set_timer( ssl, ssl->handshake->retransmit_timeout ); in mbedtls_ssl_send_flight_completed()
2359 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_FINISHED; in mbedtls_ssl_send_flight_completed()
2362 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_WAITING; in mbedtls_ssl_send_flight_completed()
2415 ssl->handshake == NULL ) in mbedtls_ssl_write_handshake_msg_ext()
2423 ssl->handshake != NULL && in mbedtls_ssl_write_handshake_msg_ext()
2424 ssl->handshake->retransmit_state == MBEDTLS_SSL_RETRANS_SENDING ) in mbedtls_ssl_write_handshake_msg_ext()
2484 MBEDTLS_PUT_UINT16_BE( ssl->handshake->out_msg_seq, ssl->out_msg, 4 ); in mbedtls_ssl_write_handshake_msg_ext()
2485 ++( ssl->handshake->out_msg_seq ); in mbedtls_ssl_write_handshake_msg_ext()
2502 ssl->handshake->update_checksum( ssl, ssl->out_msg, ssl->out_msglen ); in mbedtls_ssl_write_handshake_msg_ext()
2859 if( ssl->handshake != NULL && in mbedtls_ssl_prepare_handshake_record()
2861 recv_msg_seq != ssl->handshake->in_msg_seq ) || in mbedtls_ssl_prepare_handshake_record()
2865 if( recv_msg_seq > ssl->handshake->in_msg_seq ) in mbedtls_ssl_prepare_handshake_record()
2869 ssl->handshake->in_msg_seq ) ); in mbedtls_ssl_prepare_handshake_record()
2876 if( recv_msg_seq == ssl->handshake->in_flight_start_seq - 1 && in mbedtls_ssl_prepare_handshake_record()
2882 ssl->handshake->in_flight_start_seq ) ); in mbedtls_ssl_prepare_handshake_record()
2895 ssl->handshake->in_msg_seq ) ); in mbedtls_ssl_prepare_handshake_record()
2926 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in mbedtls_ssl_update_handshake_status()
2930 ssl->handshake->update_checksum( ssl, ssl->in_msg, ssl->in_hslen ); in mbedtls_ssl_update_handshake_status()
2936 ssl->handshake != NULL ) in mbedtls_ssl_update_handshake_status()
3803 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_load_buffered_message()
3902 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_make_space()
3943 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_message()
3967 if( recv_msg_seq < ssl->handshake->in_msg_seq ) in ssl_buffer_message()
3973 recv_msg_seq_offset = recv_msg_seq - ssl->handshake->in_msg_seq; in ssl_buffer_message()
3980 recv_msg_seq, ssl->handshake->in_msg_seq, in ssl_buffer_message()
3981 ssl->handshake->in_msg_seq + MBEDTLS_SSL_MAX_BUFFERED_HS - 1 ) ); in ssl_buffer_message()
4243 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_free_buffered_record()
4259 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_load_buffered_record()
4317 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_future_record()
4614 if( ssl->handshake == NULL ) in mbedtls_ssl_handle_message_type()
4688 if( ssl->handshake != NULL && in mbedtls_ssl_handle_message_type()
5218 if( ssl->handshake != NULL && in mbedtls_ssl_read()
5219 ssl->handshake->retransmit_state == MBEDTLS_SSL_RETRANS_SENDING ) in mbedtls_ssl_read()
5586 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in mbedtls_ssl_buffering_free()
5600 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffering_free_slot()