diff options
author | Anas Nashif <nashif@intel.com> | 2007-05-13 04:45:09 +0000 |
---|---|---|
committer | Anas Nashif <nashif@intel.com> | 2007-05-13 04:45:09 +0000 |
commit | 4331107410d9546764581ffb02b5bb8956b2451b (patch) | |
tree | 67844f02594a5a332e26a3ddc4c4796650f77560 /src/wsman.c | |
parent | 87721e46f7143e0020ec3abd2a9cbdf63c696394 (diff) | |
download | wsmancli-4331107410d9546764581ffb02b5bb8956b2451b.tar.gz wsmancli-4331107410d9546764581ffb02b5bb8956b2451b.tar.xz wsmancli-4331107410d9546764581ffb02b5bb8956b2451b.zip |
fix resource uri and filter parsing for assoc. and references
Diffstat (limited to 'src/wsman.c')
-rw-r--r-- | src/wsman.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/wsman.c b/src/wsman.c index 193b597..145ddf7 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -156,7 +156,8 @@ int main(int argc, char **argv) if (wsman_options_get_cafile()) { wsman_transport_set_cafile(cl, wsman_options_get_cafile()); } - wsman_transport_set_no_verify_peer(cl, wsman_options_get_no_verify_peer()); + wsman_transport_set_verify_peer(cl, wsman_options_get_verify_peer()); + wsman_transport_set_verify_host(cl, wsman_options_get_verify_host()); wsman_transport_set_timeout(cl, wsman_options_get_transport_timeout()); // library options @@ -165,11 +166,15 @@ int main(int argc, char **argv) * Setup Resource URI and Selectors */ resource_uri_with_selectors = wsman_options_get_resource_uri(); - if (resource_uri_with_selectors) { + if (resource_uri_with_selectors && + strcmp(resource_uri_with_selectors,CIM_ALL_AVAILABLE_CLASSES) != 0) { wsman_set_options_from_uri(resource_uri_with_selectors, options); wsman_remove_query_string(resource_uri_with_selectors, &resource_uri); + } else { + wsman_remove_query_string(resource_uri_with_selectors, + &resource_uri); } op = wsman_options_get_action(); @@ -329,10 +334,12 @@ int main(int argc, char **argv) if (wsman_options_get_cim_ref()) { wsman_set_action_option(options, FLAG_CIM_REFERENCES); + options->dialect = WSM_ASSOCIATION_FILTER_DIALECT; } if (wsman_options_get_cim_assoc()) { wsman_set_action_option(options, FLAG_CIM_ASSOCIATORS); + options->dialect = WSM_ASSOCIATION_FILTER_DIALECT; } if (wsman_options_get_optimize_enum()) { wsman_set_action_option(options, |