From nobody Fri Jun 02 17:43:41 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QXr2j47NQz4YF7T; Fri, 2 Jun 2023 17:43:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QXr2j3ZD5z3ls3; Fri, 2 Jun 2023 17:43:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685727821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TlGHX2PsgUcfJcU8GiapMVifezKuhWvOuuGmgnq1iuU=; b=b6/Wiqttlyxcg8YrGPiAsYxezHk1ZkqTeye/NC3VPL+k0HhQqL0FhSyUs9lfNVT3/XY6bA vHkAiniihUg7ktGSPeTFsNuybeRO7zsVjaHxy2WcZCB+V5gm4NOyI3QeDuCGHsOnPKN1Vu 3lGq++reUffJenAmEKU4BG/Q+q37H1gc0bILyvRYgbKFeVHNBi3AQKHaXbSj9KRvmwWXKr wpc7dA8vOedz0tClyTjAL9nCPjeT2bJH0ROrxoEN7u9aK9Ao2rMdmY/5SuzsfVfqyWMR4a Nd0nfhW5H4au23sVWPXxrW6MECnHFSoI7LUnQSofC2iXfrEELE8/i0rhq7DLTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685727821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TlGHX2PsgUcfJcU8GiapMVifezKuhWvOuuGmgnq1iuU=; b=OHp2Ff2Gj1NLvrH8iy4R4PmeeouXPssiYRWo4FA1wlYiC67d7sWD6R5NYs3aHBOiAhKfi1 1i1KOimvu+oW+H5iFtLj8iB8Kl4KOQwucIJW9EKzPKAOXHaBfvOP5iIx8e63UWM8bSMNQY oT5mQCk0hGnntVRvuttVEPSXF/34fOLxMimm4f3f97N4qcv5fz9fuhbP1jNwM17L/+ADrT +shw9idvxDvWcjb6B14xXEYml8/lPqNVf4O11XxzK0tZXbOTxgRElWouwaBcX4QzEaFX8V mjFwzbTk4lUdIRzM0bzeclE85YcrQkRLM9XkikWXdaaUJgJixRN7E0tiVRSN3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685727821; a=rsa-sha256; cv=none; b=uhg0prM+DDlWFc7LfcwoZwiswKgQAO5oTbSRq/vQgW/ZzYCvCFUXPXF1CB4VolodtHNrpt vC0p9bN6XrRdIHbxsx7Tj5jh/CYjkYHQzqs9xXJz3TMsxq8s/YMOZ8FoNATh+RX+YLxEvy qyFKlGyBMUQHuqHqODNnGxEF+9qTTJXHLX9x26nD1c9XybPRoneqpcCkrBQY0egDGeNNj0 XKeY1h/wpMZT9LUG8PDeTonB6JCrEkItTkbkLDXxQZOo4RxvQoQPjEMxZRnTaXePknv0MZ czd6TI2+dbS0vuK+HtEsVLXlZqodmdjyQxk14LnOfcOHIFPU0jD4ERPDYEMp2w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QXr2j2TYTz17Vm; Fri, 2 Jun 2023 17:43:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 352HhfMm008055; Fri, 2 Jun 2023 17:43:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 352HhfGe008054; Fri, 2 Jun 2023 17:43:41 GMT (envelope-from git) Date: Fri, 2 Jun 2023 17:43:41 GMT Message-Id: <202306021743.352HhfGe008054@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 056305d3aa2b - main - ipsec: Make algorithm tables read-only List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 056305d3aa2bdb93e57c7a3d369e5742b1b404b8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=056305d3aa2bdb93e57c7a3d369e5742b1b404b8 commit 056305d3aa2bdb93e57c7a3d369e5742b1b404b8 Author: Mark Johnston AuthorDate: 2023-06-02 17:22:56 +0000 Commit: Mark Johnston 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[] = {