From 4331107410d9546764581ffb02b5bb8956b2451b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sun, 13 May 2007 04:45:09 +0000 Subject: fix resource uri and filter parsing for assoc. and references --- src/wsman-client-options.c | 37 +++++++++++-------------------------- src/wsman.c | 11 +++++++++-- 2 files changed, 20 insertions(+), 28 deletions(-) (limited to 'src') diff --git a/src/wsman-client-options.c b/src/wsman-client-options.c index efa355b..9547170 100644 --- a/src/wsman-client-options.c +++ b/src/wsman-client-options.c @@ -70,7 +70,8 @@ static char *server = "localhost"; static char *agent = NULL; static char *url_path = NULL; static char *authentication_method = NULL; -static char no_verify_peer = 0; +static char verify_peer = 1; +static char verify_host = 1; static int transport_timeout = 0; static char *proxy = NULL; static char *proxy_upwd = NULL; @@ -162,8 +163,10 @@ char wsman_parse_options(int argc, char **argv) "Alternate configuration file", ""}, {"out-file", 'O', U_OPTION_ARG_STRING, &output_file, "Write output to file", ""}, - {"noverifypeer", 'V', U_OPTION_ARG_NONE, &no_verify_peer, + {"noverifypeer", 'V', U_OPTION_ARG_NONE, &verify_peer, "Not to verify peer certificate", NULL}, + {"noverifyhost", 'v', U_OPTION_ARG_NONE, &verify_host, + "Not to verify hostname", NULL}, {"transport-timeout", 'I', U_OPTION_ARG_INT, &transport_timeout, "Transport timeout in seconds", "