aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/tls_record.erl
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2018-06-04 17:14:53 +0200
committerPéter Dimitrov <[email protected]>2018-06-20 15:18:37 +0200
commiteae3952b4af6c3afff39dd0dd5e6b72291566b4a (patch)
tree16a79afaa1b10b427c2d122ac51a4d0868eb3476 /lib/ssl/src/tls_record.erl
parent6e0ee7a598c892b6db3282bd719583b68f2d8a89 (diff)
downloadotp-eae3952b4af6c3afff39dd0dd5e6b72291566b4a.tar.gz
otp-eae3952b4af6c3afff39dd0dd5e6b72291566b4a.tar.bz2
otp-eae3952b4af6c3afff39dd0dd5e6b72291566b4a.zip
ssl: Add logging for TLS Handshake Protocol
- Add logging for TLS Handshake messages. - Remove version from the input map used in format/2. Change-Id: I1a8a3dbe5854d3b25cca33e9a6634ac9a53d5867
Diffstat (limited to 'lib/ssl/src/tls_record.erl')
-rw-r--r--lib/ssl/src/tls_record.erl12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/ssl/src/tls_record.erl b/lib/ssl/src/tls_record.erl
index 78e2cce81e..05c5d703a9 100644
--- a/lib/ssl/src/tls_record.erl
+++ b/lib/ssl/src/tls_record.erl
@@ -404,8 +404,7 @@ get_tls_records_aux(<<?BYTE(?APPLICATION_DATA),?BYTE(MajVer),?BYTE(MinVer),
?UINT16(Length), Data:Length/binary>>,
Report = #{direction => inbound,
protocol => 'tls_record',
- message => [RawTLSRecord],
- version => {MajVer, MinVer}},
+ message => [RawTLSRecord]},
logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}),
get_tls_records_aux(Rest, [#ssl_tls{type = ?APPLICATION_DATA,
version = {MajVer, MinVer},
@@ -417,8 +416,7 @@ get_tls_records_aux(<<?BYTE(?HANDSHAKE),?BYTE(MajVer),?BYTE(MinVer),
?UINT16(Length), Data:Length/binary>>,
Report = #{direction => inbound,
protocol => 'tls_record',
- message => [RawTLSRecord],
- version => {MajVer, MinVer}},
+ message => [RawTLSRecord]},
logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}),
get_tls_records_aux(Rest, [#ssl_tls{type = ?HANDSHAKE,
version = {MajVer, MinVer},
@@ -430,8 +428,7 @@ get_tls_records_aux(<<?BYTE(?ALERT),?BYTE(MajVer),?BYTE(MinVer),
?UINT16(Length), Data:Length/binary>>,
Report = #{direction => inbound,
protocol => 'tls_record',
- message => [RawTLSRecord],
- version => {MajVer, MinVer}},
+ message => [RawTLSRecord]},
logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}),
get_tls_records_aux(Rest, [#ssl_tls{type = ?ALERT,
version = {MajVer, MinVer},
@@ -443,8 +440,7 @@ get_tls_records_aux(<<?BYTE(?CHANGE_CIPHER_SPEC),?BYTE(MajVer),?BYTE(MinVer),
?UINT16(Length), Data:Length/binary>>,
Report = #{direction => inbound,
protocol => 'tls_record',
- message => [RawTLSRecord],
- version => {MajVer, MinVer}},
+ message => [RawTLSRecord]},
logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}),
get_tls_records_aux(Rest, [#ssl_tls{type = ?CHANGE_CIPHER_SPEC,
version = {MajVer, MinVer},