aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-08-14 16:11:35 +0200
committerIngela Anderton Andin <[email protected]>2018-08-14 16:11:35 +0200
commit794fcba226957bb74e59d0268c0a9501420e7416 (patch)
tree078e12500c204e70ce6d711a943dfc3e82694f79 /lib
parent9ccd5b239b885f9ebb16a519d6878932e42782dc (diff)
parent4232ea037de2258b268bead0920fa73a539a0954 (diff)
downloadotp-794fcba226957bb74e59d0268c0a9501420e7416.tar.gz
otp-794fcba226957bb74e59d0268c0a9501420e7416.tar.bz2
otp-794fcba226957bb74e59d0268c0a9501420e7416.zip
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/src/tls_handshake.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ssl/src/tls_handshake.erl b/lib/ssl/src/tls_handshake.erl
index 7004c7a2f4..2ad1386900 100644
--- a/lib/ssl/src/tls_handshake.erl
+++ b/lib/ssl/src/tls_handshake.erl
@@ -218,6 +218,9 @@ hello(#client_hello{client_version = ClientVersion,
Version = ssl_handshake:select_version(tls_record, ClientVersion, Versions),
do_hello(Version, Versions, CipherSuites, Hello, SslOpts, Info, Renegotiation)
catch
+ error:{case_clause,{asn1, Asn1Reason}} ->
+ %% ASN-1 decode of certificate somehow failed
+ ?ALERT_REC(?FATAL, ?INTERNAL_ERROR, {failed_to_decode_own_certificate, Asn1Reason});
_:_ ->
?ALERT_REC(?FATAL, ?HANDSHAKE_FAILURE, malformed_handshake_data)
end.