summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-05-23 08:47:19 +0000
committertb <tb@openbsd.org>2020-05-23 08:47:19 +0000
commitec90fc191696b88a6edc6a8f7e20cdb545570ebd (patch)
treea582e7fab7a8f114f6609f25b17003f4e42c7d88 /lib/libssl/ssl_lib.c
parentFix typo in a comment that originated in wpi(4) and has spread elsewhere. (diff)
downloadwireguard-openbsd-ec90fc191696b88a6edc6a8f7e20cdb545570ebd.tar.xz
wireguard-openbsd-ec90fc191696b88a6edc6a8f7e20cdb545570ebd.zip
Do not assume that server_group != 0 or tlsext_supportedgroups != NULL
implies that we're dealing with a HRR in the extension handling code. Explicitly check that we're in this situation by inspecting the flag in the handshake context. Add missing error checks and send the appropriate alerts. The hrr flag needs to be unset after parsing the client hello retry to avoid breaking the server hello handling. All this is far from ideal, but better than nothing. The correct fix would likely be to make the message type available but that would need to be part of a more extensive rearchitecture of the extension handling. Discussed at length with jsing
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions