summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_methods.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-10-11 02:59:47 +0000
committerjsing <jsing@openbsd.org>2020-10-11 02:59:47 +0000
commitff7f34c78d5b28fde22a7a39ec1360721406e0bf (patch)
tree11fd10c5a53a4c18409b5eed04b91bbbfb22ad67 /lib/libssl/ssl_methods.c
parentNo longer need to cast away const in srtp_find_profile_by_name() (diff)
downloadwireguard-openbsd-ff7f34c78d5b28fde22a7a39ec1360721406e0bf.tar.xz
wireguard-openbsd-ff7f34c78d5b28fde22a7a39ec1360721406e0bf.zip
Grow init_buf before stashing a handshake message for the legacy stack.
When transitioning from the TLSv1.3 stack to the legacy stack, grow init_buf before stashing the handshake message. The TLSv1.3 stack has already received the handshake message (potentially from multiple TLS records) and validated its size, however the default allocation is only for a single plaintext record, which can result in the handshake message failing to fit in certain cases. Issue noted by tb@ via tlsfuzzer. ok tb@
Diffstat (limited to 'lib/libssl/ssl_methods.c')
0 files changed, 0 insertions, 0 deletions