aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-06-16 11:11:44 +0200
committerIngela Anderton Andin <[email protected]>2017-07-07 15:54:19 +0200
commit972f9121311efcfb50db727ab3e930ebc95ab314 (patch)
tree3f641b882bab4a570cd5c73739a46de8b2deed56 /lib/ssl/src/dtls_connection.erl
parentb6afef4b4d1bc5705ba1c838e3f546c454de47c8 (diff)
downloadotp-972f9121311efcfb50db727ab3e930ebc95ab314.tar.gz
otp-972f9121311efcfb50db727ab3e930ebc95ab314.tar.bz2
otp-972f9121311efcfb50db727ab3e930ebc95ab314.zip
ssl: Enhance error logging
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index e8cfbbe2e3..b6aafc3fa4 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -48,7 +48,7 @@
select_sni_extension/1]).
%% Alert and close handling
--export([encode_alert/3,send_alert/2, close/5]).
+-export([encode_alert/3,send_alert/2, close/5, protocol_name/0]).
%% Data handling
@@ -208,6 +208,9 @@ setopts(Transport, Socket, Other) ->
getopts(Transport, Socket, Tag) ->
dtls_socket:getopts(Transport, Socket, Tag).
+protocol_name() ->
+ "DTLS".
+
%%====================================================================
%% tls_connection_sup API
%%====================================================================