summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-04-21 18:10:55 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-04-21 18:10:55 +0200
commit671b0def19f7950545d699033b606bd6df65936f (patch)
tree5d3e7613361d96088d6512042d0bc703688dd95d
parente74128e66d3ce295d7603adc74a923fb481c14ae (diff)
downloadmonitoring-plugins-671b0def19f7950545d699033b606bd6df65936f.tar.gz
disable non-OpenSSL code compilation in -C check if we have USE_OPENSSL set
-rw-r--r--plugins/check_curl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 603c7be6..050c0d4c 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)
1752} 1752}
1753 1753
1754#ifdef LIBCURL_FEATURE_SSL 1754#ifdef LIBCURL_FEATURE_SSL
1755#ifndef USE_OPENSSL
1755time_t 1756time_t
1756parse_cert_date (const char *s) 1757parse_cert_date (const char *s)
1757{ 1758{
@@ -1885,4 +1886,5 @@ HAVE_FIRST_CERT:
1885 } 1886 }
1886 return status; 1887 return status;
1887} 1888}
1889#endif /* USE_OPENSSL */
1888#endif /* LIBCURL_FEATURE_SSL */ 1890#endif /* LIBCURL_FEATURE_SSL */