[monitoring-plugins] sslutils: Address compiler warning

Holger Weiss git at monitoring-plugins.org
Mon Nov 21 11:50:11 CET 2016


 Module: monitoring-plugins
 Branch: master
 Commit: 8b727baec560bdd3eea8fe89b897f2adb9aa535f
 Author: Holger Weiss <holger at zedat.fu-berlin.de>
   Date: Mon Nov 21 09:31:08 2016 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=8b727ba

sslutils: Address compiler warning

SSLv23_client_method() and friends return a pointer to a const-qualified
SSL_METHOD.

---

 plugins/sslutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/sslutils.c b/plugins/sslutils.c
index b412ef3..e38947e 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) {
-	SSL_METHOD *method = NULL;
+	const SSL_METHOD *method = NULL;
 	long options = 0;
 
 	switch (version) {



More information about the Commits mailing list