diff options
author | jsing <> | 2019-02-25 16:52:34 +0000 |
---|---|---|
committer | jsing <> | 2019-02-25 16:52:34 +0000 |
commit | 045deccf8d58fad15cc18cc95b1fe0f702e32d19 (patch) | |
tree | 0e724ebb242bfa78e586f1ef58071ff6e7f4dffd /src/lib/libssl/tls13_lib.c | |
parent | 1e0906f674106cafac73e1b3cf850ae2dcb18685 (diff) | |
download | openbsd-045deccf8d58fad15cc18cc95b1fe0f702e32d19.tar.gz openbsd-045deccf8d58fad15cc18cc95b1fe0f702e32d19.tar.bz2 openbsd-045deccf8d58fad15cc18cc95b1fe0f702e32d19.zip |
Correctly handle oversize writes.
If the record layer is asked to write more than fits in a plaintext record,
cap the amount at that limit. This means that we will effectively write out
a single record and return a short-write.
This behaviour matches SSL_write() with SSL_MODE_ENABLE_PARTIAL_WRITE
enabled and the non-SSL_MODE_ENABLE_PARTIAL_WRITE case will be handled
at a higher layer.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_lib.c')
0 files changed, 0 insertions, 0 deletions