diff options
author | Péter Dimitrov <[email protected]> | 2019-04-10 11:41:53 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2019-04-10 11:41:53 +0200 |
commit | d315716fee44fbcf212c3b7e18acfa8203290141 (patch) | |
tree | 86c88d01ce86a4503408574b7846d239b3bca034 | |
parent | 1782d1d032e0c284884a6f26d3a43b4608d5360a (diff) | |
download | otp-d315716fee44fbcf212c3b7e18acfa8203290141.tar.gz otp-d315716fee44fbcf212c3b7e18acfa8203290141.tar.bz2 otp-d315716fee44fbcf212c3b7e18acfa8203290141.zip |
ssl: Filter signature_schemes before usage
Filter unassigned and legacy elements from signature_scheme_list
before further processing.
Change-Id: I0a2623e53c21cebe6e736e7eee6bb6354fc698b7
-rw-r--r-- | lib/ssl/src/tls_handshake_1_3.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ssl/src/tls_handshake_1_3.erl b/lib/ssl/src/tls_handshake_1_3.erl index 0efedf3400..20d28c33de 100644 --- a/lib/ssl/src/tls_handshake_1_3.erl +++ b/lib/ssl/src/tls_handshake_1_3.erl @@ -1323,7 +1323,9 @@ get_signature_scheme_list(#signature_algorithms_cert{ ClientSignatureSchemes; get_signature_scheme_list(#signature_algorithms{ signature_scheme_list = ClientSignatureSchemes}) -> - ClientSignatureSchemes. + %% Filter unassigned and legacy elements + lists:filter(fun (E) -> is_atom(E) andalso E =/= unassigned end, + ClientSignatureSchemes). get_supported_groups(#supported_groups{supported_groups = Groups}) -> Groups. |