mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-13 18:50:01 -04:00
check_curl: code cleanup
This commit is contained in:
parent
87065ac448
commit
ec590af49f
1 changed files with 2 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ check_http (void)
|
|||
ssl_library = curlhelp_get_ssl_library (curl);
|
||||
|
||||
/* try hard to get a stack of certificates to verify against */
|
||||
if (check_cert)
|
||||
if (check_cert) {
|
||||
#if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 1)
|
||||
/* inform curl to report back certificates */
|
||||
switch (ssl_library) {
|
||||
|
|
@ -530,6 +530,7 @@ check_http (void)
|
|||
else
|
||||
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");
|
||||
#endif /* LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 19, 1) */
|
||||
}
|
||||
|
||||
#endif /* LIBCURL_FEATURE_SSL */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue