From nobody Fri Jun 9 17:21:25 2023 X-Original-To: dev-commits-src-branches@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 4Qd7Cp1SSbz4bb00; Fri, 9 Jun 2023 17:21:26 +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 4Qd7Cp0zL2z3rw8; Fri, 9 Jun 2023 17:21:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686331286; 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=QF0wioru5t9CU7068B+EVABovh+/9SECNs6wyyfErK0=; b=ryfhZ8D5+NXUAhxgGBOmRElXBNHJ7eIifdkLbqu0sqUReo2YAy8CebZZQVI9zBlPUhesmd 83zdafYHSFJEz3HGE5odxGzouroEy1HKHaCkbwj0LoKp1V3ktzBux0uqnjj0qFVfh/gIhI hCpMFX3cXgQ+jjk6bWBtdgYpsNX8AvAfpojyl0S+w97v29w2Be93fVlgIjWI+ynV/5Yf7t ytk82GEOREeMJUF6xgKpdVX4w6ukiNeXItrpu8gzDfl4RghIRCoiiHknCBAONqwO9nPSf/ LSVQOJ1GyIhjTXWMwiLGaogojphNt4QmoksTsf0AGxra+V0Ij24qTi1PtFyn7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686331286; 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=QF0wioru5t9CU7068B+EVABovh+/9SECNs6wyyfErK0=; b=u94Bey/TlBIFIgcpodDz8RSBABZXNwnjkPj28I68QlLB5aR2DHPtKQo3iyUBN9bU1tcUBF cx/327+oCxiNhum3aTbA+wHyoWLufjnvE5GWeKURqvYsetZcLs7X+vHbR+G6m8cOkGkDei kvKYtNIqChShPrc30nc1TW1PMDaS7Yoafj2UZ4KXfPtVAbGu+rKd6C+gVgNrDcjHTsEbY+ 6NyCFk+mQhxlJaRpP/c+t8RFgF9WkkzpvmZ46ZdWkzXyb0A7vRwmUt/yTF+6NQWC7KHmaP ksM5fiY3fMl/3gPdtvtZ44Wo2AsrR2ne0IfZkzjwngRKcmqDmTOuztDdLBYpSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686331286; a=rsa-sha256; cv=none; b=h6h4TLbD1SyS39IpB4IOGfh5/6JMVgacY61ovb4p8A3A26mz2g3+jpRJ65T2ViNmUGTFvI vPbEXcyQsEjgpgjHN7MGTIPzvxEmil25AMk8sMph3L5MNHC7u481J/+pMISmUyItmwAqyy PDKM7HaI4SJCeWW5rf92YkdoKevYg221qsRNc9ChcbbluxusddkUFYCl89EZ8Fr5S1753s p+/3jjVLkxWecqAWzNYga6WnFM6m5rj7gXGTJvrRg43ptktlu+rPiFh4LFw1CmgxDaIS11 YBmmYKA836tQIen0UYBMQL5VW3D5UFXFAaaNdPaRDVGj1hZ7zyWWpNyxwFpeZw== 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 4Qd7Cp034GzjyS; Fri, 9 Jun 2023 17:21:26 +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 359HLPvG019671; Fri, 9 Jun 2023 17:21:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 359HLP8Q019670; Fri, 9 Jun 2023 17:21:25 GMT (envelope-from git) Date: Fri, 9 Jun 2023 17:21:25 GMT Message-Id: <202306091721.359HLP8Q019670@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 0837ad1598e0 - stable/13 - ipsec: Make algorithm tables read-only List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 0837ad1598e0cb5fe1e7f5b305feee05bc4e9858 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0837ad1598e0cb5fe1e7f5b305feee05bc4e9858 commit 0837ad1598e0cb5fe1e7f5b305feee05bc4e9858 Author: Mark Johnston AuthorDate: 2023-06-02 17:22:56 +0000 Commit: Mark Johnston 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[] = {