SUNRPC: Remove ->encrypt and ->decrypt methods from struct gss_krb5_enctype
authorChuck Lever <chuck.lever@oracle.com>
Sun, 15 Jan 2023 17:21:58 +0000 (12:21 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 20 Feb 2023 14:20:41 +0000 (09:20 -0500)
commitd50b8152c992ac88c5f1f0cc8ade6ee0aa0a3704
treefc3bee5a673f8cee10c02ff6dfd27638333a357d
parentdfe9a123451a6e73306c988eab3dab12df001677
SUNRPC: Remove ->encrypt and ->decrypt methods from struct gss_krb5_enctype

Clean up: ->encrypt is set to only one value. Replace the two
remaining call sites with direct calls to krb5_encrypt().

There have never been any call sites for the ->decrypt() method.

Tested-by: Scott Mayhew <smayhew@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/gss_krb5.h
net/sunrpc/auth_gss/gss_krb5_crypto.c
net/sunrpc/auth_gss/gss_krb5_internal.h
net/sunrpc/auth_gss/gss_krb5_keys.c
net/sunrpc/auth_gss/gss_krb5_mech.c
net/sunrpc/auth_gss/gss_krb5_seqnum.c