smb3: send NTLMSSP version information
authorSteve French <stfrench@microsoft.com>
Thu, 20 Jan 2022 04:00:29 +0000 (22:00 -0600)
committerSteve French <stfrench@microsoft.com>
Thu, 20 Jan 2022 05:14:15 +0000 (23:14 -0600)
commit52d005337b2c94ab37273d9ad8382d4fb051defd
tree1bd4946b9069abb0083c15b24600fa749df56320
parent70431bfd825d9cd5d93412c0456f253ecad6c415
smb3: send NTLMSSP version information

For improved debugging it can be helpful to send version information
as other clients do during NTLMSSP negotiation. See protocol document
MS-NLMP section 2.2.1.1

Set the major and minor versions based on the kernel version, and the
BuildNumber based on the internal cifs.ko module version number,
and following the recommendation in the protocol documentation
(MS-NLMP section 2.2.10) we set the NTLMRevisionCurrent field to 15.

Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.h
fs/cifs/ntlmssp.h
fs/cifs/sess.c
fs/cifs/smb2pdu.c