]> Gentwo Git Trees - linux/.git/commit
cifs: Call the calc_signature functions directly
authorDavid Howells <dhowells@redhat.com>
Tue, 14 Oct 2025 17:10:08 +0000 (18:10 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 23 Oct 2025 07:47:20 +0000 (02:47 -0500)
commit4b1d7f62225a2fd024b2df5675515557169f17e7
treeddd494059246be523f0c2eb3ed4d728ef1ffa40a
parent72ed55b4c335703c203b942972558173e1e5ddee
cifs: Call the calc_signature functions directly

As the SMB1 and SMB2/3 calc_signature functions are called from separate
sign and verify paths, just call them directly rather than using a function
pointer.  The SMB3 calc_signature then jumps to the SMB2 variant if
necessary.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Enzo Matsumiya <ematsumiya@suse.de>
cc: Paulo Alcantara <pc@manguebit.org>
cc: Shyam Prasad N <sprasad@microsoft.com>
cc: Tom Talpey <tom@talpey.com>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsglob.h
fs/smb/client/smb2ops.c
fs/smb/client/smb2proto.h
fs/smb/client/smb2transport.c