summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_both.c
diff options
context:
space:
mode:
authorjsing <>2019-02-25 16:52:34 +0000
committerjsing <>2019-02-25 16:52:34 +0000
commit00b0b7c7b9a016dec85b4344c57d08c4019c8f06 (patch)
tree0e724ebb242bfa78e586f1ef58071ff6e7f4dffd /src/lib/libssl/ssl_both.c
parent395120b4a264fb5eaadb4e8296f4d6bec2216b6b (diff)
downloadopenbsd-00b0b7c7b9a016dec85b4344c57d08c4019c8f06.tar.gz
openbsd-00b0b7c7b9a016dec85b4344c57d08c4019c8f06.tar.bz2
openbsd-00b0b7c7b9a016dec85b4344c57d08c4019c8f06.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/ssl_both.c')
0 files changed, 0 insertions, 0 deletions