libcli/smb: add smb311_capabilities_check() helper
commit9e6d3df68db941c231844e9291bf6cbd5b6a42bd
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Jul 2021 10:13:49 +0000 (14 12:13 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Jul 2021 00:06:31 +0000 (15 00:06 +0000)
treec8807a31c7f79488f2afd04ec4f06d7102d3e75d
parentcf1459f458bd8cb03cf1cd3f3ed2e5d8568203b7
libcli/smb: add smb311_capabilities_check() helper

It checks that the resulting algorithms (most likely for
dialects < 3.1.1) are actually allowed.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smb2_negotiate_context.h
libcli/smb/util.c