summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-09-20 17:30:59 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-09-20 17:30:59 +0000
commitdac90194ed66ed2c45a9c1b5c0b0356c3b2bd3ed (patch)
tree0e224179ac9019976076ac4164ac24f69ccdd96a /sbin
parentb97970cf2c8f86d4dada1b82fc0fef005b48c6a0 (diff)
add an entry to "Phase 1" section for each remote peer.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipsecctl/ike.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c
index 9f5b530907e..14ebb904110 100644
--- a/sbin/ipsecctl/ike.c
+++ b/sbin/ipsecctl/ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike.c,v 1.2 2005/09/20 17:29:19 hshoexer Exp $ */
+/* $OpenBSD: ike.c,v 1.3 2005/09/20 17:30:58 hshoexer Exp $ */
/*
* Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -56,6 +56,7 @@ int ike_ipsec_establish(int, struct ipsec_rule *);
static void
ike_section_peer(struct ipsec_addr *peer, FILE *fd)
{
+ fprintf(fd, SET "[Phase 1]:%s=peer-%s\n", peer->name, peer->name);
fprintf(fd, SET "[peer-%s]:Phase=1 force\n", peer->name);
fprintf(fd, SET "[peer-%s]:Address=%s force\n", peer->name, peer->name);
}