/* This function will clear all the variables in internals * structure within the session, which depend on the current handshake. * This is used to allow further handshakes. */ void _gnutls_handshake_internal_state_clear (gnutls_session_t session) { session->internals.extensions_sent_size = 0; /* by default no selected certificate */ session->internals.proposed_record_size = DEFAULT_MAX_RECORD_SIZE; session->internals.adv_version_major = 0; session->internals.adv_version_minor = 0; session->internals.v2_hello = 0; memset (&session->internals.handshake_header_buffer, 0, sizeof (handshake_header_buffer_st)); session->internals.adv_version_minor = 0; session->internals.adv_version_minor = 0; session->internals.direction = 0; /* use out of band data for the last * handshake messages received. */ session->internals.last_handshake_in = -1; session->internals.last_handshake_out = -1; session->internals.resumable = RESUME_TRUE; _gnutls_free_datum (&session->internals.recv_buffer); deinit_internal_params (session); }
void _gnutls_handshake_internal_state_clear (gnutls_session_t session) { _gnutls_handshake_internal_state_init (session); deinit_internal_params (session); _gnutls_epoch_gc(session); }
void _gnutls_handshake_internal_state_clear(gnutls_session_t session) { _gnutls_handshake_internal_state_init(session); deinit_internal_params(session); _gnutls_epoch_gc(session); session->internals.handshake_endtime = 0; session->internals.handshake_in_progress = 0; }
void _gnutls_handshake_internal_state_clear(gnutls_session_t session) { _gnutls_handshake_internal_state_init(session); deinit_internal_params(session); deinit_keys(session); _gnutls_epoch_gc(session); session->internals.handshake_endtime = 0; session->internals.handshake_in_progress = 0; session->internals.tfo.connect_addrlen = 0; session->internals.tfo.connect_only = 0; }