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

Every enctype in the table points .get_mic and .verify_mic at
the same pair of functions. The indirection served no purpose
after the v1 enctype support was removed. Call
gss_krb5_get_mic_v2() and gss_krb5_verify_mic_v2() directly
from the GSS mechanism dispatch and drop the function 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