From d8bd1c585ae2124f99c45bc7a291df5dfed842c4 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Thu, 8 Jul 2021 21:07:20 +0000 Subject: The xformsw array never changes. Declare struct xformsw constant and map data read only. OK deraadt@ mvs@ mpi@ --- sys/netinet/ip_ah.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet/ip_ah.c') diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c index 7943d5f6207..f6b5640239a 100644 --- a/sys/netinet/ip_ah.c +++ b/sys/netinet/ip_ah.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah.c,v 1.149 2021/07/08 15:13:14 bluhm Exp $ */ +/* $OpenBSD: ip_ah.c,v 1.150 2021/07/08 21:07:19 bluhm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -99,7 +99,7 @@ ah_attach(void) * ah_init() is called when an SPI is being set up. */ int -ah_init(struct tdb *tdbp, struct xformsw *xsp, struct ipsecinit *ii) +ah_init(struct tdb *tdbp, const struct xformsw *xsp, struct ipsecinit *ii) { const struct auth_hash *thash = NULL; struct cryptoini cria, crin; -- cgit v1.2.3