We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6bbb44 commit 5732517Copy full SHA for 5732517
lib/ssl/src/ssl_handshake.erl
@@ -2701,9 +2701,13 @@ encode_psk_binders(Binders) ->
2701
Len = byte_size(Result),
2702
<<?UINT16(Len), Result/binary>>.
2703
2704
-
2705
hello_extensions_list(HelloExtensions) ->
2706
- [Ext || {_, Ext} <- maps:to_list(HelloExtensions), Ext =/= undefined].
+ case maps:take(pre_shared_key, HelloExtensions) of
+ {#pre_shared_key_client_hello{} = PSK, Rest} ->
2707
+ [Ext || {_, Ext} <- maps:to_list(Rest), Ext =/= undefined] ++ [PSK];
2708
+ _ ->
2709
+ [Ext || {_, Ext} <- maps:to_list(HelloExtensions), Ext =/= undefined]
2710
+ end.
2711
2712
%%-------------Decode handshakes---------------------------------
2713
dec_server_key(<<?UINT16(PLen), P:PLen/binary,
0 commit comments