aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_record.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-04-17 16:45:27 +0200
committerIngela Anderton Andin <[email protected]>2014-04-17 16:45:27 +0200
commit26082cdd64823ecf92c47188f5a161e5ff2f8660 (patch)
treee1d65e9aaf04d68a2f604524b1ec4a8df5d81564 /lib/ssl/src/ssl_record.erl
parentdf7dc4d8b6a2834136c5ffefb404009ce62ea939 (diff)
downloadotp-26082cdd64823ecf92c47188f5a161e5ff2f8660.tar.gz
otp-26082cdd64823ecf92c47188f5a161e5ff2f8660.tar.bz2
otp-26082cdd64823ecf92c47188f5a161e5ff2f8660.zip
ssl: Correct decryption error handling
Diffstat (limited to 'lib/ssl/src/ssl_record.erl')
-rw-r--r--lib/ssl/src/ssl_record.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_record.erl b/lib/ssl/src/ssl_record.erl
index b0e9943e6d..7337225bc4 100644
--- a/lib/ssl/src/ssl_record.erl
+++ b/lib/ssl/src/ssl_record.erl
@@ -377,7 +377,7 @@ cipher(Version, Fragment,
ssl_cipher:cipher(BulkCipherAlgo, CipherS0, MacHash, Fragment, Version),
{CipherFragment, WriteState0#connection_state{cipher_state = CipherS1}}.
%%--------------------------------------------------------------------
--spec decipher(ssl_version(), binary(), #connection_state{}) -> {binary(), binary(), #connection_state{}}.
+-spec decipher(ssl_version(), binary(), #connection_state{}) -> {binary(), binary(), #connection_state{}} | #alert{}.
%%
%% Description: Payload decryption
%%--------------------------------------------------------------------