diff options
author | Mathieu Sauve-Frankel <msf@cvs.openbsd.org> | 2006-06-01 18:03:41 +0000 |
---|---|---|
committer | Mathieu Sauve-Frankel <msf@cvs.openbsd.org> | 2006-06-01 18:03:41 +0000 |
commit | b8d46b0042a04db3c6c7c61465fa6e337dcf6c78 (patch) | |
tree | 86d8d5d70b3c92ec533028d15e7fbac304efadd0 /sbin/ipsecctl | |
parent | c25f75e9862a9b0a5d8703dcf74a8a179c320d96 (diff) |
change the local-ID section name to always be unique as we may want to use more than one ISAKMP ID on the local peer.
ok hshoexer@
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/ike.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c index 7af17d2a43f..57b04d7a36b 100644 --- a/sbin/ipsecctl/ike.c +++ b/sbin/ipsecctl/ike.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ike.c,v 1.32 2006/06/01 06:46:35 hshoexer Exp $ */ +/* $OpenBSD: ike.c,v 1.33 2006/06/01 18:03:40 msf Exp $ */ /* * Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -114,13 +114,13 @@ ike_section_ids(struct ipsec_addr_wrap *peer, struct ipsec_auth *auth, FILE *fd, if (auth->srcid) { if (peer) fprintf(fd, SET "[peer-%s]:ID=%s-ID force\n", - peer->name, "local"); + peer->name, auth->srcid); else fprintf(fd, SET "[peer-default]:ID=%s-ID force\n", - "local"); + auth->srcid); - fprintf(fd, SET "[%s-ID]:ID-type=FQDN force\n", "local"); - fprintf(fd, SET "[%s-ID]:Name=%s force\n", "local", + fprintf(fd, SET "[%s-ID]:ID-type=FQDN force\n", auth->srcid); + fprintf(fd, SET "[%s-ID]:Name=%s force\n", auth->srcid, auth->srcid); } if (auth->dstid) { |