git: 056305d3aa2b - main - ipsec: Make algorithm tables read-only
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Jun 2023 17:43:41 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=056305d3aa2bdb93e57c7a3d369e5742b1b404b8
commit 056305d3aa2bdb93e57c7a3d369e5742b1b404b8
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-06-02 17:22:56 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-06-02 17:43:15 +0000
ipsec: Make algorithm tables read-only
No functional change intended.
MFC after: 1 week
---
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 ac4b87985654..d6221280f0e7 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -583,7 +583,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[] = {
@@ -595,7 +595,7 @@ static struct supported_ealgs {
{ SADB_X_EALG_CHACHA20POLY1305, &enc_xform_chacha20_poly1305 },
};
-static struct supported_aalgs {
+static const struct supported_aalgs {
int sadb_alg;
const struct auth_hash *xform;
} supported_aalgs[] = {
@@ -610,7 +610,7 @@ static struct supported_aalgs {
{ SADB_X_AALG_CHACHA20POLY1305, &auth_hash_poly1305 },
};
-static struct supported_calgs {
+static const struct supported_calgs {
int sadb_alg;
const struct comp_algo *xform;
} supported_calgs[] = {