diff options
author | Sven Nierlein <sven@nierlein.de> | 2018-10-24 13:36:47 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-24 13:36:47 +0200 |
commit | ec590af49fa3498db52a118a519d8fcafd0b00ad (patch) | |
tree | c19f9934448f8b11e0f9dbc6f955c692cdd4f709 /plugins/check_curl.c | |
parent | 87065ac4482c40247e285da27351b72b3019fc87 (diff) | |
download | monitoring-plugins-ec590af49fa3498db52a118a519d8fcafd0b00ad.tar.gz |
check_curl: code cleanup
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r-- | plugins/check_curl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index cbf21ed9..4d378916 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
@@ -481,7 +481,7 @@ check_http (void) | |||
481 | ssl_library = curlhelp_get_ssl_library (curl); | 481 | ssl_library = curlhelp_get_ssl_library (curl); |
482 | 482 | ||
483 | /* try hard to get a stack of certificates to verify against */ | 483 | /* try hard to get a stack of certificates to verify against */ |
484 | if (check_cert) | 484 | if (check_cert) { |
485 | #if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 1) | 485 | #if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 1) |
486 | /* inform curl to report back certificates */ | 486 | /* inform curl to report back certificates */ |
487 | switch (ssl_library) { | 487 | switch (ssl_library) { |
@@ -530,6 +530,7 @@ check_http (void) | |||
530 | else | 530 | else |
531 | die (STATE_CRITICAL, "HTTP CRITICAL - Cannot retrieve certificates (no CURLOPT_SSL_CTX_FUNCTION, no OpenSSL library or libcurl too old and has no CURLOPT_CERTINFO)\n"); | 531 | die (STATE_CRITICAL, "HTTP CRITICAL - Cannot retrieve certificates (no CURLOPT_SSL_CTX_FUNCTION, no OpenSSL library or libcurl too old and has no CURLOPT_CERTINFO)\n"); |
532 | #endif /* LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 1) */ | 532 | #endif /* LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 1) */ |
533 | } | ||
533 | 534 | ||
534 | #endif /* LIBCURL_FEATURE_SSL */ | 535 | #endif /* LIBCURL_FEATURE_SSL */ |
535 | 536 | ||