SUNRPC: Add "@len" parameter to gss_unwrap()
authorChuck Lever <chuck.lever@oracle.com>
Sun, 19 Apr 2020 01:06:23 +0000 (21:06 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 27 Apr 2020 14:58:30 +0000 (10:58 -0400)
commit31c9590ae468478fe47dc0f5f0d3562b2f69450e
treee2231235a418da9ac1e30841e1f6d0552119330e
parent6a8b55ed4056ea5559ebe4f6a4b247f627870d4c
SUNRPC: Add "@len" parameter to gss_unwrap()

Refactor: This is a pre-requisite to fixing the client-side ralign
computation in gss_unwrap_resp_priv().

The length value is passed in explicitly rather that as the value
of buf->len. This will subsequently allow gss_unwrap_kerberos_v1()
to compute a slack and align value, instead of computing it in
gss_unwrap_resp_priv().

Fixes: 35e77d21baa0 ("SUNRPC: Add rpc_auth::au_ralign field")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/gss_api.h
include/linux/sunrpc/gss_krb5.h
net/sunrpc/auth_gss/auth_gss.c
net/sunrpc/auth_gss/gss_krb5_crypto.c
net/sunrpc/auth_gss/gss_krb5_wrap.c
net/sunrpc/auth_gss/gss_mech_switch.c
net/sunrpc/auth_gss/svcauth_gss.c