From dea7062538591cd055302b30e67b563013021126 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 6 May 2004 14:41:48 +0000 Subject: we need a seperate field for the md5 key len, can't use strlen, noticed by markus some time ago --- usr.sbin/bgpd/parse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bgpd/parse.y') diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index c5a0e5ac1c7..7d09e5005c6 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.100 2004/05/04 11:34:01 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.101 2004/05/06 14:41:47 henning Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -520,6 +520,7 @@ peeropts : REMOTEAS asnumber { YYERROR; } curpeer->conf.auth.method = AUTH_MD5SIG; + curpeer->conf.auth.md5key_len = strlen($4); free($4); } | TCP MD5SIG KEY string { @@ -556,6 +557,7 @@ peeropts : REMOTEAS asnumber { strtoul(s, NULL, 16); } curpeer->conf.auth.method = AUTH_MD5SIG; + curpeer->conf.auth.md5key_len = strlen($4) / 2; free($4); } | IPSEC ESP IKE { -- cgit v1.2.3