diff options
author | Ingela Anderton Andin <[email protected]> | 2014-03-24 18:58:30 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2014-03-25 09:36:57 +0100 |
commit | d18e7b25a17a0c62c0beddc81f23b1dea18b7ef4 (patch) | |
tree | 2ebd9e7b6f5824677df555ab755e848a0ff831ee /lib/ssl/src/ssl_alert.erl | |
parent | 8ffbf0feccb375afc10ce676070b6b778e9bf260 (diff) | |
download | otp-d18e7b25a17a0c62c0beddc81f23b1dea18b7ef4.tar.gz otp-d18e7b25a17a0c62c0beddc81f23b1dea18b7ef4.tar.bz2 otp-d18e7b25a17a0c62c0beddc81f23b1dea18b7ef4.zip |
ssl: Handle SNI alert unrecognized_name and gracefully deal with
unexpected alerts.
Add recognitions of RFC 4366 alerts and handle possible
unimplementd alerts in a gracefully way.
Diffstat (limited to 'lib/ssl/src/ssl_alert.erl')
-rw-r--r-- | lib/ssl/src/ssl_alert.erl | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_alert.erl b/lib/ssl/src/ssl_alert.erl index 5c842b4d19..8b393468ea 100644 --- a/lib/ssl/src/ssl_alert.erl +++ b/lib/ssl/src/ssl_alert.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2007-2013. All Rights Reserved. +%% Copyright Ericsson AB 2007-2014. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -124,5 +124,17 @@ description_txt(?USER_CANCELED) -> "user canceled"; description_txt(?NO_RENEGOTIATION) -> "no renegotiation"; +description_txt(?UNSUPPORTED_EXTENSION) -> + "unsupported extension"; +description_txt(?CERTIFICATE_UNOBTAINABLE) -> + "certificate unobtainable"; +description_txt(?UNRECOGNISED_NAME) -> + "unrecognised name"; +description_txt(?BAD_CERTIFICATE_STATUS_RESPONSE) -> + "bad certificate status response"; +description_txt(?BAD_CERTIFICATE_HASH_VALUE) -> + "bad certificate hash value"; description_txt(?UNKNOWN_PSK_IDENTITY) -> - "unknown psk identity". + "unknown psk identity"; +description_txt(Enum) -> + lists:flatten(io_lib:format("unsupported/unknown alert: ~p", [Enum])). |