[nagiosplug] Don't mark SSL_METHOD variable as "const"

"Nagios Plugin Development" <[email protected]> Tue, 10 Sep 2013 21:00:34 +0000
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
 Module: nagiosplug
 Branch: master
 Commit: ca9ce71576ddf78cc54fe3b6f0428cdfea72e9df
 Author: Holger Weiss <[email protected]>
   Date: Tue Sep 10 22:49:03 2013 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=ca9ce71

Don't mark SSL_METHOD variable as "const"

The SSL_CTX_new(3) function expects a non-"const" SSL_METHOD value.

---

 plugins/sslutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/sslutils.c b/plugins/sslutils.c
index b8d4581..2ec9190 100644
--- a/plugins/sslutils.c
+++ b/plugins/sslutils.c
@@ -48,7 +48,7 @@ int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int versi
 }
 
 int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey) {
-	const SSL_METHOD *method = NULL;
+	SSL_METHOD *method = NULL;
 
 	switch (version) {
 	case 0: /* Deafult to auto negotiation */


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk