summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-04-21 16:10:55 (GMT)
committerSven Nierlein <sven@nierlein.de>2018-10-22 14:30:31 (GMT)
commitf91be546bf70787f84a30431b327d1c675de3d9d (patch)
treefae8a0e9aced4e5db6c4ec966f2a17e9398eb9a8 /plugins/check_curl.c
parent82744e97050807fb162895ba444d5a1ebca8b823 (diff)
downloadmonitoring-plugins-f91be546bf70787f84a30431b327d1c675de3d9d.tar.gz
disable non-OpenSSL code compilation in -C check if we have USE_OPENSSL set
Diffstat (limited to 'plugins/check_curl.c')
-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 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)
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 */