diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-10 22:49:03 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-10 22:49:03 +0200 |
commit | ca9ce71576ddf78cc54fe3b6f0428cdfea72e9df (patch) | |
tree | 4c604060b6663ff79a7045336f6a202f3fe9e409 /plugins/sslutils.c | |
parent | 5b0e00782da2bbe9f9062884c9ae8ed330d5911e (diff) | |
download | monitoring-plugins-ca9ce71576ddf78cc54fe3b6f0428cdfea72e9df.tar.gz |
Don't mark SSL_METHOD variable as "const"
The SSL_CTX_new(3) function expects a non-"const" SSL_METHOD value.
Diffstat (limited to 'plugins/sslutils.c')
-rw-r--r-- | plugins/sslutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index b8d45813..2ec91904 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 | |||
48 | } | 48 | } |
49 | 49 | ||
50 | int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey) { | 50 | int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey) { |
51 | const SSL_METHOD *method = NULL; | 51 | SSL_METHOD *method = NULL; |
52 | 52 | ||
53 | switch (version) { | 53 | switch (version) { |
54 | case 0: /* Deafult to auto negotiation */ | 54 | case 0: /* Deafult to auto negotiation */ |