summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_http.c2
-rw-r--r--plugins/netutils.h2
-rw-r--r--plugins/sslutils.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 46c0c135..7e3f82ae 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -879,7 +879,7 @@ check_http (void)
879 elapsed_time_connect = (double)microsec_connect / 1.0e6; 879 elapsed_time_connect = (double)microsec_connect / 1.0e6;
880 if (use_ssl == TRUE) { 880 if (use_ssl == TRUE) {
881 gettimeofday (&tv_temp, NULL); 881 gettimeofday (&tv_temp, NULL);
882 result = np_net_ssl_init_with_hostname_version_and_certificate(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey); 882 result = np_net_ssl_init_with_hostname_version_and_cert(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey);
883 if (result != STATE_OK) 883 if (result != STATE_OK)
884 return result; 884 return result;
885 microsec_ssl = deltime (tv_temp); 885 microsec_ssl = deltime (tv_temp);
diff --git a/plugins/netutils.h b/plugins/netutils.h
index 765b3d5f..5a495c91 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -101,7 +101,7 @@ extern int address_family;
101int np_net_ssl_init(int sd); 101int np_net_ssl_init(int sd);
102int np_net_ssl_init_with_hostname(int sd, char *host_name); 102int np_net_ssl_init_with_hostname(int sd, char *host_name);
103int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version); 103int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version);
104int np_net_ssl_init_with_hostname_version_and_certificate(int sd, char *host_name, int version, char *cert, char *privkey); 104int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey);
105void np_net_ssl_cleanup(); 105void np_net_ssl_cleanup();
106int np_net_ssl_write(const void *buf, int num); 106int np_net_ssl_write(const void *buf, int num);
107int np_net_ssl_read(void *buf, int num); 107int np_net_ssl_read(void *buf, int num);
diff --git a/plugins/sslutils.c b/plugins/sslutils.c
index 4927e361..78317f83 100644
--- a/plugins/sslutils.c
+++ b/plugins/sslutils.c
@@ -45,10 +45,10 @@ int np_net_ssl_init_with_hostname(int sd, char *host_name) {
45} 45}
46 46
47int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version) { 47int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version) {
48 return np_net_ssl_init_with_hostname_version_and_certificate(sd, host_name, version, NULL, NULL); 48 return np_net_ssl_init_with_hostname_version_and_cert(sd, host_name, version, NULL, NULL);
49} 49}
50 50
51int np_net_ssl_init_with_hostname_version_and_certificate(int sd, char *host_name, int version, char *cert, char *privkey) { 51int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey) {
52 const SSL_METHOD *method = NULL; 52 const SSL_METHOD *method = NULL;
53 53
54 switch (version) { 54 switch (version) {