summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2007-06-01 03:09:36 +0000
committerAnas Nashif <nashif@intel.com>2007-06-01 03:09:36 +0000
commit32cc1f8e24972f81873cb33f580af3ad50ec7aa2 (patch)
tree7920feaa4b6dc8397fbcb658e176f5d1319b9486 /src
parent591577df39c1e55596cd592fe9a973a24666af74 (diff)
downloadwsmancli-32cc1f8e24972f81873cb33f580af3ad50ec7aa2.tar.gz
wsmancli-32cc1f8e24972f81873cb33f580af3ad50ec7aa2.tar.xz
wsmancli-32cc1f8e24972f81873cb33f580af3ad50ec7aa2.zip
added ssl key option
Diffstat (limited to 'src')
-rw-r--r--src/wsman.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wsman.c b/src/wsman.c
index 93a7369..91b7796 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -60,6 +60,7 @@ static const char **wsman_argv = NULL;
static int server_port = 0;
static char *cainfo = NULL;
static char *cert = NULL;
+static char *sslkey = NULL;
static char *endpoint = NULL;
static char *username = NULL;
static char *password = NULL;
@@ -140,6 +141,8 @@ char wsman_parse_options(int argc, char **argv)
"Certificate file to verify the peer", "<filename>"},
{"cert", 'A', U_OPTION_ARG_STRING, &cert,
"Certificate file. The certificate must be in PEM format.", "<filename>"},
+ {"sslkey", 'K', U_OPTION_ARG_STRING, &sslkey,
+ "SSL Key.", "<key>"},
{"username", 'u', U_OPTION_ARG_STRING, &username,
"User name", "<username>"},
{"path", 'g', U_OPTION_ARG_STRING, &url_path,
@@ -491,6 +494,9 @@ int main(int argc, char **argv)
if (cert) {
wsman_transport_set_cert(cl, cert);
}
+ if (sslkey) {
+ wsman_transport_set_cert(cl, sslkey);
+ }
wsman_transport_set_verify_peer(cl, !noverify_peer);
wsman_transport_set_verify_host(cl, !noverify_host);
wsman_transport_set_timeout(cl, transport_timeout);