mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-06 23:30:37 -05:00
check_curl.c: bugfix: verify certificates option should not force SSL to be used
This commit is contained in:
parent
6946b546fe
commit
63cb7ecfcf
2 changed files with 2 additions and 2 deletions
|
|
@ -1346,7 +1346,7 @@ process_arguments (int argc, char **argv)
|
|||
#ifdef LIBCURL_FEATURE_SSL
|
||||
case 'D': /* verify peer certificate & host */
|
||||
verify_peer_and_host = TRUE;
|
||||
goto enable_ssl;
|
||||
break;
|
||||
#endif
|
||||
case 'S': /* use SSL */
|
||||
#ifdef LIBCURL_FEATURE_SSL
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ SKIP: {
|
|||
$res = NPTest->testCmd("./$plugin -v -H $host_tls_http:443 -S -p 443");
|
||||
like( $res->output, '/^Host: '.$host_tls_http.'\s*$/ms', "Host Header OK" );
|
||||
|
||||
$res = NPTest->testCmd("./$plugin -v -H $host_tls_http -D -p 443");
|
||||
$res = NPTest->testCmd("./$plugin -v -H $host_tls_http -D -S -p 443");
|
||||
like( $res->output, '/(^Host: '.$host_tls_http.'\s*$)|(cURL returned 60)/ms', "Host Header OK" );
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue