Treat SSL_ERROR_ZERO_RETURN as a success, rather than a failure. Also
authorjsing <jsing@openbsd.org>
Wed, 15 Apr 2015 16:08:43 +0000 (16:08 +0000)
committerjsing <jsing@openbsd.org>
Wed, 15 Apr 2015 16:08:43 +0000 (16:08 +0000)
commit2c02f8b26f5560e1e849e63bb3954bd864aa878a
tree8f9e7488498a477849424bc53ec362cc405079c9
parent6dce3cf345a9e84cda4253ff92667f2db1a35406
Treat SSL_ERROR_ZERO_RETURN as a success, rather than a failure. Also
ensure that outlen is set to zero so that tls_read() has read(2) like
semantics for EOF.

Spotted by doug@
lib/libtls/tls.c