From 6d6a624193e319e5f3befdc11fd126e778d1a0e9 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Tue, 29 Jan 2019 10:02:22 +0100 Subject: ssl: Create connection_env --- lib/ssl/src/ssl_connection.hrl | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'lib/ssl/src/ssl_connection.hrl') diff --git a/lib/ssl/src/ssl_connection.hrl b/lib/ssl/src/ssl_connection.hrl index e55ef37b71..f182783f54 100644 --- a/lib/ssl/src/ssl_connection.hrl +++ b/lib/ssl/src/ssl_connection.hrl @@ -68,26 +68,33 @@ negotiated_protocol }). +-record(connection_env, { + user_application :: {Monitor::reference(), User::pid()}, + + }). + -record(state, { static_env :: #static_env{}, handshake_env :: #handshake_env{} | secret_printout(), + connection_env :: #connection_env{}, + + %% Changed often + connection_states :: ssl_record:connection_states() | secret_printout(), + protocol_buffers :: term() | secret_printout() , %% #protocol_buffers{} from tls_record.hrl or dtls_recor.hr + user_data_buffer :: undefined | binary() | secret_printout(), + bytes_to_read :: undefined | integer(), %% bytes to read in passive mode + start_or_recv_from :: term(), + timer :: undefined | reference(), % start_or_recive_timer + %% Change seldome - user_application :: {Monitor::reference(), User::pid()}, ssl_options :: #ssl_options{}, socket_options :: #socket_options{}, session :: #session{} | secret_printout(), terminated = false ::boolean() | closed, negotiated_version :: ssl_record:ssl_version() | 'undefined', - bytes_to_read :: undefined | integer(), %% bytes to read in passive mode downgrade, - - %% Changed often - connection_states :: ssl_record:connection_states() | secret_printout(), - protocol_buffers :: term() | secret_printout() , %% #protocol_buffers{} from tls_record.hrl or dtls_recor.hr - user_data_buffer :: undefined | binary() | secret_printout(), %% Used only in HS - client_certificate_requested = false :: boolean(), key_algorithm :: ssl:key_algo(), hashsign_algorithm = {undefined, undefined}, @@ -100,8 +107,7 @@ srp_params :: #srp_user{} | secret_printout() | 'undefined', srp_keys ::{PublicKey :: binary(), PrivateKey :: binary()} | secret_printout() | 'undefined', premaster_secret :: binary() | secret_printout() | 'undefined', - start_or_recv_from :: term(), - timer :: undefined | reference(), % start_or_recive_timer + flight_buffer = [] :: list() | map(), %% Buffer of TLS/DTLS records, used during the TLS handshake %% to when possible pack more than one TLS record into the %% underlaying packet format. Introduced by DTLS - RFC 4347. -- cgit v1.2.3