Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
IngelaAndin committed Aug 11, 2024
2 parents 7af7e50 + 4c4105b commit 90a48ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/ssl/src/tls_server_connection_1_3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,10 @@ do_handle_client_hello(#client_hello{cipher_suites = ClientCiphers,
end
catch
{Ref, #alert{} = Alert} ->
Alert
Alert;
error:Reason:ST ->
?SSL_LOG(debug, handshake_error, [{reason, Reason}, {stacktrace, ST}]),
?ALERT_REC(?ILLEGAL_PARAMETER, illegal_parameter_in_client_hello)
end.

send_hello_flight({start_handshake, PSK0},
Expand Down Expand Up @@ -586,7 +589,8 @@ send_hello_flight({start_handshake, PSK0},
catch
{Ref, #alert{} = Alert} ->
Alert;
error:badarg ->
error:Reason:ST ->
?SSL_LOG(debug, crypto_error, [{reason, Reason}, {stacktrace, ST}]),
?ALERT_REC(?ILLEGAL_PARAMETER, illegal_parameter_to_compute_key)
end.

Expand Down

0 comments on commit 90a48ae

Please sign in to comment.