aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-05-31 09:43:07 +0200
committerIngela Anderton Andin <[email protected]>2016-05-31 10:33:31 +0200
commitd56242c69f84d7612aebd045255c41d85cbb1794 (patch)
tree593dfcdf3d71b6389dd9c7143fa1785ed941ffaa
parent305b83b081b056bead4650e21ae2bfc6c15ff9f5 (diff)
downloadotp-d56242c69f84d7612aebd045255c41d85cbb1794.tar.gz
otp-d56242c69f84d7612aebd045255c41d85cbb1794.tar.bz2
otp-d56242c69f84d7612aebd045255c41d85cbb1794.zip
ssl: Remove error logger reports
We do not want error reports that can leek secret information into the logs.
-rw-r--r--lib/ssl/src/ssl_handshake.erl10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index 1f7acbd434..0787e151c0 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -664,10 +664,7 @@ master_secret(RecordCB, Version, #session{master_secret = Mastersecret},
try master_secret(RecordCB, Version, Mastersecret, SecParams,
ConnectionStates, Role)
catch
- exit:Reason ->
- Report = io_lib:format("Key calculation failed due to ~p",
- [Reason]),
- error_logger:error_report(Report),
+ exit:_ ->
?ALERT_REC(?FATAL, ?HANDSHAKE_FAILURE, key_calculation_failure)
end;
@@ -683,10 +680,7 @@ master_secret(RecordCB, Version, PremasterSecret, ConnectionStates, Role) ->
ClientRandom, ServerRandom),
SecParams, ConnectionStates, Role)
catch
- exit:Reason ->
- Report = io_lib:format("Master secret calculation failed"
- " due to ~p", [Reason]),
- error_logger:error_report(Report),
+ exit:_ ->
?ALERT_REC(?FATAL, ?HANDSHAKE_FAILURE, master_secret_calculation_failure)
end.