Module: monitoring-plugins Branch: feature_check_curl Commit: 671b0def19f7950545d699033b606bd6df65936f Author: Andreas Baumann <m...@andreasbaumann.cc> Date: Fri Apr 21 18:10:55 2017 +0200 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=671b0de
disable non-OpenSSL code compilation in -C check if we have USE_OPENSSL set --- plugins/check_curl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 603c7be..050c0d4 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -1752,6 +1752,7 @@ curlhelp_get_ssl_library_string (curlhelp_ssl_library ssl_library) } #ifdef LIBCURL_FEATURE_SSL +#ifndef USE_OPENSSL time_t parse_cert_date (const char *s) { @@ -1885,4 +1886,5 @@ HAVE_FIRST_CERT: } return status; } +#endif /* USE_OPENSSL */ #endif /* LIBCURL_FEATURE_SSL */