[nagiosplug] Set SSL_MODE_AUTO_RETRY flag
"Nagios Plugin Development" <[email protected]> Tue, 20 Aug 2013 21:40:16 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: f4b90cabc0025e14948c03f6ee9e9ccd51c31fb2 Author: Holger Weiss <[email protected]> Date: Tue Aug 20 23:17:23 2013 +0200 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=f4b90ca Set SSL_MODE_AUTO_RETRY flag We use OpenSSL (or GnuTLS) with blocking semantics, and we don't want SSL_read(3) or SSL_write(3) calls to return SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE (see #3614716). --- plugins/sslutils.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/plugins/sslutils.c b/plugins/sslutils.c index 78317f8..818f799 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c @@ -95,6 +95,7 @@ int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int #ifdef SSL_OP_NO_TICKET SSL_CTX_set_options(c, SSL_OP_NO_TICKET); #endif + SSL_CTX_set_mode(c, SSL_MODE_AUTO_RETRY); if ((s = SSL_new(c)) != NULL) { #ifdef SSL_set_tlsext_host_name if (host_name != NULL) ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk