CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2015/09/14 06:29:16
Modified files:
lib/libtls : tls.c tls_internal.h
Log message:
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@