summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_lib.c
diff options
context:
space:
mode:
authorjsing <>2019-02-25 16:52:34 +0000
committerjsing <>2019-02-25 16:52:34 +0000
commit045deccf8d58fad15cc18cc95b1fe0f702e32d19 (patch)
tree0e724ebb242bfa78e586f1ef58071ff6e7f4dffd /src/lib/libssl/tls13_lib.c
parent1e0906f674106cafac73e1b3cf850ae2dcb18685 (diff)
downloadopenbsd-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