From b8d46b0042a04db3c6c7c61465fa6e337dcf6c78 Mon Sep 17 00:00:00 2001 From: Mathieu Sauve-Frankel Date: Thu, 1 Jun 2006 18:03:41 +0000 Subject: 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@ --- sbin/ipsecctl/ike.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sbin/ipsecctl') 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 * @@ -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) { -- cgit v1.2.3