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 defa508 commit 1ea2ea9Copy full SHA for 1ea2ea9
lib/ssl/src/ssl_handshake.erl
@@ -2687,9 +2687,13 @@ encode_psk_binders(Binders) ->
2687
Len = byte_size(Result),
2688
<<?UINT16(Len), Result/binary>>.
2689
2690
-
2691
hello_extensions_list(HelloExtensions) ->
2692
- [Ext || {_, Ext} <- maps:to_list(HelloExtensions), Ext =/= undefined].
+ case maps:take(pre_shared_key, HelloExtensions) of
+ {#pre_shared_key_client_hello{} = PSK, Rest} ->
2693
+ [Ext || {_, Ext} <- maps:to_list(Rest), Ext =/= undefined] ++ [PSK];
2694
+ _ ->
2695
+ [Ext || {_, Ext} <- maps:to_list(HelloExtensions), Ext =/= undefined]
2696
+ end.
2697
2698
%%-------------Decode handshakes---------------------------------
2699
dec_server_key(<<?UINT16(PLen), P:PLen/binary,
0 commit comments