smb3.1.1: print warning if server does not support requested encryption type
authorSteve French <stfrench@microsoft.com>
Thu, 15 Oct 2020 05:14:47 +0000 (00:14 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 19 Oct 2020 20:08:42 +0000 (15:08 -0500)
commit511ac89e591ab9affce17a8be4c45f6c2bb837f0
treef46c4611dbb8eede037d91e093c1f6e621550360
parent29e279230413cdd5e00fb5d269cae1099184ab85
smb3.1.1: print warning if server does not support requested encryption type

If server does not support AES-256-GCM and it was required on mount, print
warning message. Also log and return a different error message (EOPNOTSUPP)
when encryption mechanism is not supported vs the case when an unknown
unrequested encryption mechanism could be returned (EINVAL).

Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2pdu.c