From 4cd1fd0df592abf3f95171c4dbabdaf46789d581 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 28 Apr 2004 00:38:40 +0000 Subject: prefix the auth related defines by AUTH_, we had a name clash, markus ok --- usr.sbin/bgpd/session.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/bgpd/session.c') diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index bab8a4c558d..9164b24ec14 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.158 2004/04/27 22:42:13 henning Exp $ */ +/* $OpenBSD: session.c,v 1.159 2004/04/28 00:38:39 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -795,7 +795,7 @@ session_accept(int listenfd) return; } } - if (p->conf.auth.method == MD5SIG) { + if (p->conf.auth.method == AUTH_MD5SIG) { len = sizeof(opt); if (getsockopt(connfd, IPPROTO_TCP, TCP_MD5SIG, &opt, &len) == -1) @@ -844,7 +844,7 @@ session_connect(struct peer *peer) return (-1); } - if (peer->conf.auth.method == MD5SIG) + if (peer->conf.auth.method == AUTH_MD5SIG) if (setsockopt(peer->sock, IPPROTO_TCP, TCP_MD5SIG, &opt, sizeof(opt)) == -1) { log_peer_warn(&peer->conf, "setsockopt md5sig"); -- cgit v1.2.3