summaryrefslogtreecommitdiff
path: root/usr.sbin/ikectl/ikectl.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2010-10-07 13:30:51 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2010-10-07 13:30:51 +0000
commitef93c654eac834fd282ce76a89d4d398fa8778dd (patch)
treea44a4351fabb27badf563ea213caf7ecf463903a /usr.sbin/ikectl/ikectl.c
parent742b87c9dcf5fbf8cea1902b83fd6faf9ba28167 (diff)
Allow to specify the export password on the command line (optionally, for
scripting). The "peer" argument now needs to be preceded with the "peer" keyword, eg. ... export peer 10.1.1.1 instead of export 10.1.1.1.
Diffstat (limited to 'usr.sbin/ikectl/ikectl.c')
-rw-r--r--usr.sbin/ikectl/ikectl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ikectl/ikectl.c b/usr.sbin/ikectl/ikectl.c
index 000ece6113c..b3331401ab6 100644
--- a/usr.sbin/ikectl/ikectl.c
+++ b/usr.sbin/ikectl/ikectl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikectl.c,v 1.7 2010/10/07 13:28:46 jmc Exp $ */
+/* $OpenBSD: ikectl.c,v 1.8 2010/10/07 13:30:50 reyk Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@vantronix.net>
@@ -97,7 +97,7 @@ ca_opt(struct parse_result *res)
ca_install(ca);
break;
case CA_EXPORT:
- ca_export(ca, NULL, res->peer);
+ ca_export(ca, NULL, res->peer, res->pass);
break;
case CA_CERT_CREATE:
case CA_SERVER:
@@ -111,7 +111,7 @@ ca_opt(struct parse_result *res)
ca_cert_install(ca, res->host);
break;
case CA_CERT_EXPORT:
- ca_export(ca, res->host, res->peer);
+ ca_export(ca, res->host, res->peer, res->pass);
break;
case CA_CERT_REVOKE:
ca_revoke(ca, res->host);