Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jun 2023 17:21:25 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0837ad1598e0 - stable/13 - ipsec: Make algorithm tables read-only
Message-ID:  <202306091721.359HLP8Q019670@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=0837ad1598e0cb5fe1e7f5b305feee05bc4e9858

commit 0837ad1598e0cb5fe1e7f5b305feee05bc4e9858
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-06-02 17:22:56 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-06-09 17:19:34 +0000

    ipsec: Make algorithm tables read-only
    
    No functional change intended.
    
    MFC after:      1 week
    
    (cherry picked from commit 056305d3aa2bdb93e57c7a3d369e5742b1b404b8)
---
 sys/netipsec/key.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index efda68f09078..4e325f597c07 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -580,7 +580,7 @@ struct sadb_msghdr {
 	int extlen[SADB_EXT_MAX + 1];
 };
 
-static struct supported_ealgs {
+static const struct supported_ealgs {
 	int sadb_alg;
 	const struct enc_xform *xform;
 } supported_ealgs[] = {
@@ -591,7 +591,7 @@ static struct supported_ealgs {
 	{ SADB_X_EALG_AESGMAC,		&enc_xform_aes_nist_gmac },
 };
 
-static struct supported_aalgs {
+static const struct supported_aalgs {
 	int sadb_alg;
 	const struct auth_hash *xform;
 } supported_aalgs[] = {
@@ -605,7 +605,7 @@ static struct supported_aalgs {
 	{ SADB_X_AALG_AES256GMAC,	&auth_hash_nist_gmac_aes_256 },
 };
 
-static struct supported_calgs {
+static const struct supported_calgs {
 	int sadb_alg;
 	const struct comp_algo *xform;
 } supported_calgs[] = {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306091721.359HLP8Q019670>