diff options
author | 2015-09-14 12:29:16 +0000 | |
---|---|---|
committer | 2015-09-14 12:29:16 +0000 | |
commit | 39389942672943c7e99d53f26c783b99efdf796b (patch) | |
tree | b620387e418df35c49d2a52794a972c32f85ea79 /usr.bin/tmux/cmd-set-buffer.c | |
parent | Wrap <langinfo.h> and <regexp.h> so internal calls go direct and (diff) | |
download | wireguard-openbsd-39389942672943c7e99d53f26c783b99efdf796b.tar.xz wireguard-openbsd-39389942672943c7e99d53f26c783b99efdf796b.zip |
Expose EOF without close-notify via tls_close().
Make tls_read(3)/tls_write(3) follow read(2)/write(2) like semantics and
return 0 on EOF with and without close-notify. However, if we saw an EOF
from the underlying file descriptors without getting a close-notify, save
this and make it visible when tls_close(3) is called. This keeps the
semantics we want, but makes it possible to detect truncation at higher
layers, if necessary.
ok beck@ guenther@
Diffstat (limited to 'usr.bin/tmux/cmd-set-buffer.c')
0 files changed, 0 insertions, 0 deletions