From 0489df95fc5ab2c84cd7830df97942a874e431d9 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Wed, 20 May 2009 01:05:35 -0400 Subject: check_http: Add SSL/TLS hostname extension support (SNI) - (#1939022 - Joe Presbrey) --- plugins/check_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_http.c') 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) die (STATE_CRITICAL, _("HTTP CRITICAL - Unable to open TCP socket\n")); #ifdef HAVE_SSL if (use_ssl == TRUE) { - np_net_ssl_init(sd); + np_net_ssl_init_with_hostname(sd, host_name); if (check_cert == TRUE) { result = np_net_ssl_check_cert(days_till_exp); np_net_ssl_cleanup(); -- cgit v1.2.3-74-g34f1