Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Unified Diff: test/connect-vpn

Issue 6513009: flimflam: Add L2TP/IPsec VPN plugin (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: checkpoint: connect fails but gets ipconfig data Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« scripts/libppp-plugin.c ('K') | « src/task.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/connect-vpn
diff --git a/test/connect-vpn b/test/connect-vpn
index 8ad34a2b3a696681f35f874eb6de2e99856fd798..38f09a50b15a6649dcfa08e12442a10702197ead 100755
--- a/test/connect-vpn
+++ b/test/connect-vpn
@@ -5,7 +5,7 @@ import dbus, flimflam
if (len(sys.argv) < 2):
print "Usage: %s <type> <name> <host> <domain> [optional args] " % (sys.argv[0])
- print " where <type> is one of: openvpn"
+ print " where <type> is one of: l2tpipsec openvpn"
sys.exit(1)
params = {
@@ -24,6 +24,17 @@ if params["Type"] == "openvpn":
params["OpenVPN.Key"] = sys.argv[7]
# Enable this by default since openvpn's example server configs enable it.
params["OpenVPN.CompLZO"] = "true"
+elif params["Type"] == "l2tpipsec":
+ if (len(sys.argv) < 9):
+ print "Usage: %s l2tpipsec <name> <host> <domain> <cafile> <certfile>" \
+ " <keyfile> <pskfile> <user> <password>" % (sys.argv[0])
+ sys.exit(1)
+ params["L2TPIPsec.CACert"] = sys.argv[5]
+ params["L2TPIPsec.Cert"] = sys.argv[6]
+ params["L2TPIPsec.Key"] = sys.argv[7]
+ params["L2TPIPsec.PSK"] = sys.argv[8]
+ params["L2TPIPsec.User"] = sys.argv[9]
+ params["L2TPIPsec.Password"] = sys.argv[10]
else:
print "Unknown VPN type"
sys.exit(1)
« scripts/libppp-plugin.c ('K') | « src/task.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698