]> git.ipfire.org Git - thirdparty/linux.git/commit
SUNRPC: Remove wrap/unwrap function pointers from enctype table
authorChuck Lever <chuck.lever@oracle.com>
Mon, 27 Apr 2026 13:50:56 +0000 (09:50 -0400)
committerChuck Lever <cel@kernel.org>
Tue, 9 Jun 2026 20:32:59 +0000 (16:32 -0400)
commit5fc7721223cff64e2a6740f97ef8db7cd05c9552
tree2e428ab7e118e10e81b65fb09eb45e8e7df5e641
parent0308f694276ea8943bde3cc5848669ea828f0c22
SUNRPC: Remove wrap/unwrap function pointers from enctype table

Every enctype points .wrap and .unwrap at gss_krb5_wrap_v2()
and gss_krb5_unwrap_v2(). As with get_mic/verify_mic, the
indirection dates from when v1 enctypes had different wrap
implementations. Call the functions directly and remove the
pointers from struct gss_krb5_enctype.

Assisted-by: Claude:claude-opus-4-6
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/auth_gss/gss_krb5_internal.h
net/sunrpc/auth_gss/gss_krb5_mech.c