aboutsummaryrefslogtreecommitdiff
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)
elapsed_time_connect = (double)microsec_connect / 1.0e6;
if (use_ssl == TRUE) {
gettimeofday (&tv_temp, NULL);
- result = np_net_ssl_init_with_hostname_version_and_certificate(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey);
+ result = np_net_ssl_init_with_hostname_version_and_cert(sd, (use_sni ? host_name : NULL), ssl_version, client_cert, client_privkey);
if (result != STATE_OK)
return result;
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;
int np_net_ssl_init(int sd);
int np_net_ssl_init_with_hostname(int sd, char *host_name);
int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version);
-int np_net_ssl_init_with_hostname_version_and_certificate(int sd, char *host_name, int version, char *cert, char *privkey);
+int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int version, char *cert, char *privkey);
void np_net_ssl_cleanup();
int np_net_ssl_write(const void *buf, int num);
int 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) {
}
int np_net_ssl_init_with_hostname_and_version(int sd, char *host_name, int version) {
- return np_net_ssl_init_with_hostname_version_and_certificate(sd, host_name, version, NULL, NULL);
+ return np_net_ssl_init_with_hostname_version_and_cert(sd, host_name, version, NULL, NULL);
}
-int np_net_ssl_init_with_hostname_version_and_certificate(int sd, char *host_name, int version, char *cert, char *privkey) {
+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;
switch (version) {