Commit 7b22681
committed
Handle PSK-Only negotiation with key_share not being sent in Server Hello
The wrong cipher suite is potentially chosen if key_share is not seen by the client.
$ cat /tmp/test
Client_identitySHA256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
Server:
$ gnutls-serv --http --priority NORMAL:+ECDHE-PSK:+PSK:+ECDHE-ECDSA:+AES-128-CCM-8:+CTYPE-CLI-ALL:+CTYPE-SRV-ALL:+SHA256 --pskpasswd=/tmp/test
Client:
$ examples/client/client -vd -g -s -p 5556 2>&1| grep HTTP1 parent 85f3fb9 commit 7b22681
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14925 | 14925 | | |
14926 | 14926 | | |
14927 | 14927 | | |
| 14928 | + | |
| 14929 | + | |
| 14930 | + | |
| 14931 | + | |
| 14932 | + | |
| 14933 | + | |
14928 | 14934 | | |
14929 | 14935 | | |
14930 | 14936 | | |
| |||
0 commit comments