[Nagiosplug-devel] [ nagiosplug-Bugs-3614716 ] np_net_ssl_read fails to take SSL_WANT_READ into account

Holger Weiß holger at cis.fu-berlin.de
Wed Jul 17 00:31:44 CEST 2013


* William Leibzon <william at leibzon.org> [2013-07-16 14:28]:
> But I agree that this is valid point

Yes.

> and SSL_WANT_READ needs to be handled.

I was going to check whether setting SSL_MODE_AUTO_RETRY¹ would be a
better choice.  When using blocking I/O, I don't see the point in having
OpenSSL's I/O functions return SSL_WANT_READ.  I just wanted to make
sure this won't break GnuTLS (or older OpenSSL versions, but I think
they introduced SSL_MODE_AUTO_RETRY ages ago).  If GnuTLS supports
SSL_MODE_AUTO_RETRY, I'd happily pull a commit that sets this mode
(maybe wrapped in an "#ifdef SSL_MODE_AUTO_RETRY" if it's only supported
by newer GnuTLS versions).

Holger

¹ https://www.openssl.org/docs/ssl/SSL_CTX_set_mode.html




More information about the Devel mailing list