diff options
author | Anas Nashif <nashif@intel.com> | 2007-05-04 22:28:38 +0000 |
---|---|---|
committer | Anas Nashif <nashif@intel.com> | 2007-05-04 22:28:38 +0000 |
commit | 23a0079658f810c7d18b7a05fbf210d74cee2b13 (patch) | |
tree | fecdc35caa5afec7dd1ba6c46809196d97b15b08 /src/wsman.c | |
parent | 96c514f19dc504afeafef715447b5e27c00b1ead (diff) | |
download | wsmancli-23a0079658f810c7d18b7a05fbf210d74cee2b13.tar.gz wsmancli-23a0079658f810c7d18b7a05fbf210d74cee2b13.tar.xz wsmancli-23a0079658f810c7d18b7a05fbf210d74cee2b13.zip |
improve client thread safety.
Diffstat (limited to 'src/wsman.c')
-rw-r--r-- | src/wsman.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/wsman.c b/src/wsman.c index e89d3e0..193b597 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -125,7 +125,6 @@ int main(int argc, char **argv) if (!wsman_parse_options(argc, argv)) { exit(EXIT_FAILURE); } - wsman_setup_transport_and_library_options(); initialize_logging(); // wsman_client_transport_init(NULL); @@ -146,6 +145,22 @@ int main(int argc, char **argv) error("Null Client"); exit(EXIT_FAILURE); } + // transport options + wsman_transport_set_auth_method(cl, wsman_options_get_auth_method()); + if (wsman_options_get_proxy()) { + wsman_transport_set_proxy(cl, wsman_options_get_proxy()); + if (wsman_options_get_proxy_upwd()) { + wsman_transport_set_proxyauth(cl, wsman_options_get_proxy_upwd()); + } + } + 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_timeout(cl, wsman_options_get_transport_timeout()); + + // library options + wsman_debug_set_level(wsman_options_get_debug_level()); /* * Setup Resource URI and Selectors */ |