From 2643d850723e380801cff6ac74f7ec5b094d6a96 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 19 Apr 2017 16:38:30 +0000 Subject: made check_curl compile also if we have openssl disabled --- plugins/check_curl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 9b14486f..b5137129 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -157,7 +157,9 @@ int ssl_version = CURL_SSLVERSION_DEFAULT; char *client_cert = NULL; char *client_privkey = NULL; char *ca_cert = NULL; +#ifdef HAVE_SSL X509 *cert = NULL; +#endif int no_body = FALSE; int maximum_age = -1; int address_family = AF_UNSPEC; @@ -214,6 +216,8 @@ main (int argc, char **argv) return result; } +#ifdef HAVE_SSL + int verify_callback(int preverify_ok, X509_STORE_CTX *x509_ctx) { /* TODO: we get all certificates of the chain, so which ones @@ -231,6 +235,8 @@ CURLcode sslctxfun(CURL *curl, SSL_CTX *sslctx, void *parm) return CURLE_OK; } +#endif /* HAVE_SSL */ + /* Checks if the server 'reply' is one of the expected 'statuscodes' */ static int expected_statuscode (const char *reply, const char *statuscodes) -- cgit v1.2.3-74-g34f1