From 7a17aa3e91fc2f5faa7e60fa1618eb2a0d2cf85b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 2 Nov 2017 16:46:20 +0100 Subject: set ssl_version to CURL_SSLVERSION_DEFAULT and not CURL_SSLVERSION_TLSv1_0 (since curl 7.56.1 we get an illegal argument error otherwise) diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 2f58305..db1e9c5 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c @@ -1320,10 +1320,10 @@ process_arguments (int argc, char **argv) #ifdef LIBCURL_FEATURE_SSL enable_ssl: use_ssl = TRUE; - /* ssl_version initialized to CURL_SSLVERSION_TLSv1_0 as a default. + /* ssl_version initialized to CURL_SSLVERSION_DEFAULT as a default. * Only set if it's non-zero. This helps when we include multiple * parameters, like -S and -C combinations */ - ssl_version = CURL_SSLVERSION_TLSv1_0; + ssl_version = CURL_SSLVERSION_DEFAULT; if (c=='S' && optarg != NULL) { char *plus_ptr = strchr(optarg, '+'); if (plus_ptr) { -- cgit v0.10-9-g596f