aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2019-06-17 13:48:19 +0200
committerPéter Dimitrov <[email protected]>2019-06-17 15:54:58 +0200
commit70a885cfd869612c0f0896390f72a1fd0fd07c23 (patch)
treee328933386ca736082a89b5847f13e668853f934 /lib/ssl/src
parentb4fb2e5669acb02697d9a9ab168eb0fbff6f370c (diff)
downloadotp-70a885cfd869612c0f0896390f72a1fd0fd07c23.tar.gz
otp-70a885cfd869612c0f0896390f72a1fd0fd07c23.tar.bz2
otp-70a885cfd869612c0f0896390f72a1fd0fd07c23.zip
ssl: Fix ssl_handshake:extension_value/1
Handle new TLS 1.2/1.3 extensions.
Diffstat (limited to 'lib/ssl/src')
-rw-r--r--lib/ssl/src/ssl_handshake.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index f68d3e9b26..c890beaf08 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -1474,7 +1474,16 @@ extension_value(#next_protocol_negotiation{extension_data = Data}) ->
extension_value(#srp{username = Name}) ->
Name;
extension_value(#renegotiation_info{renegotiated_connection = Data}) ->
- Data.
+ Data;
+extension_value(#signature_algorithms{signature_scheme_list = Schemes}) ->
+ Schemes;
+extension_value(#signature_algorithms_cert{signature_scheme_list = Schemes}) ->
+ Schemes;
+extension_value(#key_share_client_hello{client_shares = ClientShares}) ->
+ ClientShares;
+extension_value(#client_hello_versions{versions = Versions}) ->
+ Versions.
+
%%--------------------------------------------------------------------
%%% Internal functions