diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-09-20 17:30:59 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-09-20 17:30:59 +0000 |
commit | dac90194ed66ed2c45a9c1b5c0b0356c3b2bd3ed (patch) | |
tree | 0e224179ac9019976076ac4164ac24f69ccdd96a /sbin/ipsecctl | |
parent | b97970cf2c8f86d4dada1b82fc0fef005b48c6a0 (diff) |
add an entry to "Phase 1" section for each remote peer.
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/ike.c | 3 |
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); } |