diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-28 04:34:47 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-28 04:34:47 +0000 |
commit | a74a7b8c8a2841ed40215b8f990ca2f8b09de85a (patch) | |
tree | a6c1efbed83699593a193c5e5de1a9308d14099e /usr.sbin/bgpd/printconf.c | |
parent | 183225a9e752d6018c473b05da7adc109f23d825 (diff) |
allow ah/esp spec with IKE, markus ok
Diffstat (limited to 'usr.sbin/bgpd/printconf.c')
-rw-r--r-- | usr.sbin/bgpd/printconf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c index 91bcce1e5a4..e6b9d17c725 100644 --- a/usr.sbin/bgpd/printconf.c +++ b/usr.sbin/bgpd/printconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printconf.c,v 1.16 2004/04/28 00:38:39 henning Exp $ */ +/* $OpenBSD: printconf.c,v 1.17 2004/04/28 04:34:46 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -183,8 +183,10 @@ print_peer(struct peer_config *p) printf(" %s XXXXXX", print_enc_alg(p->auth.enc_alg_out)); printf("\n"); - } else if (p->auth.method == AUTH_IPSEC_IKE) - printf("%s\tipsec ike\n", c); + } else if (p->auth.method == AUTH_IPSEC_IKE_AH) + printf("%s\tipsec ah ike\n", c); + else if (p->auth.method == AUTH_IPSEC_IKE_ESP) + printf("%s\tipsec esp ike\n", c); if (p->attrset.flags) printf("%s\t", c); |