aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-06-02 17:22:56 +0000
committerMark Johnston <markj@FreeBSD.org>2023-06-02 17:43:15 +0000
commit056305d3aa2bdb93e57c7a3d369e5742b1b404b8 (patch)
tree166d47d9fe2bdb4065c5ea694e5745a8a1c78f90
parent7266f5249848512b99d4dc78256af148f9df986e (diff)
downloadsrc-056305d3aa2bdb93e57c7a3d369e5742b1b404b8.tar.gz
src-056305d3aa2bdb93e57c7a3d369e5742b1b404b8.zip
ipsec: Make algorithm tables read-only
No functional change intended. MFC after: 1 week
-rw-r--r--sys/netipsec/key.c6
1 files 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[] = {