aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.hrl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-01-29 10:02:22 +0100
committerIngela Anderton Andin <[email protected]>2019-02-08 09:22:25 +0100
commit6d6a624193e319e5f3befdc11fd126e778d1a0e9 (patch)
tree64e5151737b161bff81a9b5fa6ede27a94fd982b /lib/ssl/src/ssl_connection.hrl
parentf69963a389fa1f933fee0664e8bb453389977b14 (diff)
downloadotp-6d6a624193e319e5f3befdc11fd126e778d1a0e9.tar.gz
otp-6d6a624193e319e5f3befdc11fd126e778d1a0e9.tar.bz2
otp-6d6a624193e319e5f3befdc11fd126e778d1a0e9.zip
ssl: Create connection_env
Diffstat (limited to 'lib/ssl/src/ssl_connection.hrl')
-rw-r--r--lib/ssl/src/ssl_connection.hrl26
1 files changed, 16 insertions, 10 deletions
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.