• Home
  • Raw
  • Download

Lines Matching refs:handshake

256     if( ssl->handshake->retransmit_timeout >= ssl->conf->hs_timeout_max )  in ssl_double_retransmit_timeout()
265 if( ssl->handshake->retransmit_timeout != ssl->conf->hs_timeout_min ) in ssl_double_retransmit_timeout()
267 ssl->handshake->mtu = 508; in ssl_double_retransmit_timeout()
268 MBEDTLS_SSL_DEBUG_MSG( 2, ( "mtu autoreduction to %d bytes", ssl->handshake->mtu ) ); in ssl_double_retransmit_timeout()
271 new_timeout = 2 * ssl->handshake->retransmit_timeout; in ssl_double_retransmit_timeout()
274 if( new_timeout < ssl->handshake->retransmit_timeout || in ssl_double_retransmit_timeout()
280 ssl->handshake->retransmit_timeout = new_timeout; in ssl_double_retransmit_timeout()
282 (unsigned long) ssl->handshake->retransmit_timeout ) ); in ssl_double_retransmit_timeout()
289 ssl->handshake->retransmit_timeout = ssl->conf->hs_timeout_min; in ssl_reset_retransmit_timeout()
291 (unsigned long) ssl->handshake->retransmit_timeout ) ); in ssl_reset_retransmit_timeout()
2053 timeout = ssl->handshake->retransmit_timeout; in mbedtls_ssl_fetch_input()
2272 if( ssl->handshake->flight == NULL ) in ssl_flight_append()
2273 ssl->handshake->flight = msg; in ssl_flight_append()
2276 mbedtls_ssl_flight_item *cur = ssl->handshake->flight; in ssl_flight_append()
2314 if( ssl->transform_out == ssl->handshake->alt_transform_out ) in ssl_swap_epochs()
2324 ssl->transform_out = ssl->handshake->alt_transform_out; in ssl_swap_epochs()
2325 ssl->handshake->alt_transform_out = tmp_transform; in ssl_swap_epochs()
2329 memcpy( ssl->cur_out_ctr, ssl->handshake->alt_out_ctr, in ssl_swap_epochs()
2331 memcpy( ssl->handshake->alt_out_ctr, tmp_out_ctr, in ssl_swap_epochs()
2332 sizeof( ssl->handshake->alt_out_ctr ) ); in ssl_swap_epochs()
2368 if( ssl->handshake->retransmit_state != MBEDTLS_SSL_RETRANS_SENDING ) in mbedtls_ssl_flight_transmit()
2372 ssl->handshake->cur_msg = ssl->handshake->flight; in mbedtls_ssl_flight_transmit()
2373 ssl->handshake->cur_msg_p = ssl->handshake->flight->p + 12; in mbedtls_ssl_flight_transmit()
2378 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_SENDING; in mbedtls_ssl_flight_transmit()
2381 while( ssl->handshake->cur_msg != NULL ) in mbedtls_ssl_flight_transmit()
2384 const mbedtls_ssl_flight_item * const cur = ssl->handshake->cur_msg; in mbedtls_ssl_flight_transmit()
2396 if( is_finished && ssl->handshake->cur_msg_p == ( cur->p + 12 ) ) in mbedtls_ssl_flight_transmit()
2425 ssl->handshake->cur_msg_p += cur->len; in mbedtls_ssl_flight_transmit()
2429 const unsigned char * const p = ssl->handshake->cur_msg_p; in mbedtls_ssl_flight_transmit()
2482 ssl->handshake->cur_msg_p += cur_hs_frag_len; in mbedtls_ssl_flight_transmit()
2486 if( ssl->handshake->cur_msg_p >= cur->p + cur->len ) in mbedtls_ssl_flight_transmit()
2490 ssl->handshake->cur_msg = cur->next; in mbedtls_ssl_flight_transmit()
2491 ssl->handshake->cur_msg_p = cur->next->p + 12; in mbedtls_ssl_flight_transmit()
2495 ssl->handshake->cur_msg = NULL; in mbedtls_ssl_flight_transmit()
2496 ssl->handshake->cur_msg_p = NULL; in mbedtls_ssl_flight_transmit()
2513 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_FINISHED; in mbedtls_ssl_flight_transmit()
2516 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_WAITING; in mbedtls_ssl_flight_transmit()
2517 mbedtls_ssl_set_timer( ssl, ssl->handshake->retransmit_timeout ); in mbedtls_ssl_flight_transmit()
2531 mbedtls_ssl_flight_free( ssl->handshake->flight ); in mbedtls_ssl_recv_flight_completed()
2532 ssl->handshake->flight = NULL; in mbedtls_ssl_recv_flight_completed()
2533 ssl->handshake->cur_msg = NULL; in mbedtls_ssl_recv_flight_completed()
2536 ssl->handshake->in_flight_start_seq = ssl->handshake->in_msg_seq; in mbedtls_ssl_recv_flight_completed()
2539 ssl->handshake->buffering.seen_ccs = 0; in mbedtls_ssl_recv_flight_completed()
2550 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_FINISHED; in mbedtls_ssl_recv_flight_completed()
2553 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_PREPARING; in mbedtls_ssl_recv_flight_completed()
2562 mbedtls_ssl_set_timer( ssl, ssl->handshake->retransmit_timeout ); in mbedtls_ssl_send_flight_completed()
2567 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_FINISHED; in mbedtls_ssl_send_flight_completed()
2570 ssl->handshake->retransmit_state = MBEDTLS_SSL_RETRANS_WAITING; in mbedtls_ssl_send_flight_completed()
2642 ssl->handshake == NULL ) in mbedtls_ssl_write_handshake_msg_ext()
2650 ssl->handshake != NULL && in mbedtls_ssl_write_handshake_msg_ext()
2651 ssl->handshake->retransmit_state == MBEDTLS_SSL_RETRANS_SENDING ) in mbedtls_ssl_write_handshake_msg_ext()
2711 MBEDTLS_PUT_UINT16_BE( ssl->handshake->out_msg_seq, ssl->out_msg, 4 ); in mbedtls_ssl_write_handshake_msg_ext()
2712 ++( ssl->handshake->out_msg_seq ); in mbedtls_ssl_write_handshake_msg_ext()
2729 ssl->handshake->update_checksum( ssl, ssl->out_msg, ssl->out_msglen ); in mbedtls_ssl_write_handshake_msg_ext()
3104 if( ssl->handshake != NULL && in mbedtls_ssl_prepare_handshake_record()
3106 recv_msg_seq != ssl->handshake->in_msg_seq ) || in mbedtls_ssl_prepare_handshake_record()
3110 if( recv_msg_seq > ssl->handshake->in_msg_seq ) in mbedtls_ssl_prepare_handshake_record()
3114 ssl->handshake->in_msg_seq ) ); in mbedtls_ssl_prepare_handshake_record()
3121 if( recv_msg_seq == ssl->handshake->in_flight_start_seq - 1 && in mbedtls_ssl_prepare_handshake_record()
3127 ssl->handshake->in_flight_start_seq ) ); in mbedtls_ssl_prepare_handshake_record()
3140 ssl->handshake->in_msg_seq ) ); in mbedtls_ssl_prepare_handshake_record()
3171 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in mbedtls_ssl_update_handshake_status()
3175 ssl->handshake->update_checksum( ssl, ssl->in_msg, ssl->in_hslen ); in mbedtls_ssl_update_handshake_status()
3181 ssl->handshake != NULL ) in mbedtls_ssl_update_handshake_status()
4094 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_load_buffered_message()
4194 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_make_space()
4236 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_message()
4260 if( recv_msg_seq < ssl->handshake->in_msg_seq ) in ssl_buffer_message()
4266 recv_msg_seq_offset = recv_msg_seq - ssl->handshake->in_msg_seq; in ssl_buffer_message()
4273 recv_msg_seq, ssl->handshake->in_msg_seq, in ssl_buffer_message()
4274 ssl->handshake->in_msg_seq + MBEDTLS_SSL_MAX_BUFFERED_HS - 1 ) ); in ssl_buffer_message()
4538 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_free_buffered_record()
4555 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_load_buffered_record()
4614 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffer_future_record()
4912 if( ssl->handshake == NULL ) in mbedtls_ssl_handle_message_type()
5001 if( ssl->handshake != NULL && in mbedtls_ssl_handle_message_type()
5640 if( ssl->handshake != NULL && in mbedtls_ssl_read()
5641 ssl->handshake->retransmit_state == MBEDTLS_SSL_RETRANS_SENDING ) in mbedtls_ssl_read()
6016 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in mbedtls_ssl_buffering_free()
6030 mbedtls_ssl_handshake_params * const hs = ssl->handshake; in ssl_buffering_free_slot()