diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-05-20 01:05:35 -0400 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-05-20 01:05:35 -0400 |
commit | 0489df95fc5ab2c84cd7830df97942a874e431d9 (patch) | |
tree | be2615d44c1f1b86cf668ce55c5e42dc3e3c28f8 /plugins/check_http.c | |
parent | 56cf66c9b815ed953245476b7c715f15cf053763 (diff) | |
download | monitoring-plugins-0489df95fc5ab2c84cd7830df97942a874e431d9.tar.gz |
check_http: Add SSL/TLS hostname extension support (SNI) - (#1939022 - Joe Presbrey)
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r-- | plugins/check_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 03102033..79f6adf3 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -790,7 +790,7 @@ check_http (void) | |||
790 | die (STATE_CRITICAL, _("HTTP CRITICAL - Unable to open TCP socket\n")); | 790 | die (STATE_CRITICAL, _("HTTP CRITICAL - Unable to open TCP socket\n")); |
791 | #ifdef HAVE_SSL | 791 | #ifdef HAVE_SSL |
792 | if (use_ssl == TRUE) { | 792 | if (use_ssl == TRUE) { |
793 | np_net_ssl_init(sd); | 793 | np_net_ssl_init_with_hostname(sd, host_name); |
794 | if (check_cert == TRUE) { | 794 | if (check_cert == TRUE) { |
795 | result = np_net_ssl_check_cert(days_till_exp); | 795 | result = np_net_ssl_check_cert(days_till_exp); |
796 | np_net_ssl_cleanup(); | 796 | np_net_ssl_cleanup(); |