Rework the pfkey and tcp md5 API to not depend on struct peer.
authorclaudio <claudio@openbsd.org>
Tue, 1 Oct 2024 11:49:24 +0000 (11:49 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 1 Oct 2024 11:49:24 +0000 (11:49 +0000)
commitd762911438b0f2269d31deb8a37b9427b23c929f
tree0789ca9c610a35f8dbe6214923c8d18da29a9c81
parent75c5b1bc6a80f74cce6f7e344c48c3947690b38c
Rework the pfkey and tcp md5 API to not depend on struct peer.

Instead use struct auth_config and struct auth_state in the pfkey calls
and those tcp_md5 calls where it matters.

This is preparation work to allow RTR to use TCP MD5 as well.
OK tb@
usr.sbin/bgpd/bgpd.c
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/config.c
usr.sbin/bgpd/control.c
usr.sbin/bgpd/parse.y
usr.sbin/bgpd/pfkey.c
usr.sbin/bgpd/printconf.c
usr.sbin/bgpd/session.c
usr.sbin/bgpd/session.h