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

William Leibzon william at leibzon.org
Wed Jul 17 00:57:40 CEST 2013


On Tue, Jul 16, 2013 at 3:31 PM, Holger Weiß <holger at cis.fu-berlin.de> wrote:
> * 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).

Yeah, that's even better. It was added in 0.9.6 which is 2004.

William




More information about the Devel mailing list