summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-04-27 23:15:29 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-04-27 23:15:29 +0000
commita6add13769218316563169cfbb71743496c967ef (patch)
tree00fe2ccf5d385916f79f90ae21f01fa81f86f18d
parente67d937eb1b7beef047541172dddc32427227d7c (diff)
set conf.auth.methodod for md5, too
-rw-r--r--usr.sbin/bgpd/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 7e7cbe4a25a..005851368d2 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.91 2004/04/27 23:02:41 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.92 2004/04/27 23:15:28 markus Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -515,6 +515,7 @@ peeropts : REMOTEAS asnumber {
free($4);
YYERROR;
}
+ curpeer->conf.auth.method = MD5SIG;
free($4);
}
| TCP MD5SIG KEY string {
@@ -546,6 +547,7 @@ peeropts : REMOTEAS asnumber {
curpeer->conf.auth.md5key[i] =
strtoul(s, NULL, 16);
}
+ curpeer->conf.auth.method = MD5SIG;
free($4);
}
| IPSEC IKE {