summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_client.c
diff options
context:
space:
mode:
authorjsing <>2020-06-24 18:04:33 +0000
committerjsing <>2020-06-24 18:04:33 +0000
commitee3570f7d7361ff4eae513b0f9e2a6889a5e9ec6 (patch)
tree812d8422db6a4baa06b2ed4cb4f8306da2346ecf /src/lib/libssl/tls13_client.c
parent3567e55107118142b02eb08a87a1298951877be3 (diff)
downloadopenbsd-ee3570f7d7361ff4eae513b0f9e2a6889a5e9ec6.tar.gz
openbsd-ee3570f7d7361ff4eae513b0f9e2a6889a5e9ec6.tar.bz2
openbsd-ee3570f7d7361ff4eae513b0f9e2a6889a5e9ec6.zip
Make tls13_legacy_shutdown() match ssl3_shutdown() semantics.
When first called, queue and send a close notify, before returning 0 or 1 to indicate if a close notify has already been received from the peer. If called again only attempt to read a close notify if there is no pending application data and only read one record from the wire. In particular, this avoids continuing to read application data where the peer continues to send application data. Issue noted by naddy@ with ftp(1). ok jca@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_client.c')
0 files changed, 0 insertions, 0 deletions