summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2021-03-09 23:38:51 +0100
committerJeremy Allison <jra@samba.org>2021-03-17 00:49:32 +0000
commitc0868882c71eaa0e1a7609a1b0dad47887dda29f (patch)
tree82ab86493f8bdfe3ce931725793963606bf44f91 /libcli
parentc34b86a34e8ead6d52994b9b5b32f5553a8f90fd (diff)
downloadsamba-c0868882c71eaa0e1a7609a1b0dad47887dda29f.tar.gz
libcli/smb: introduce struct smb3_encryption_capabilities
This will allow us to control the offered ciphers from the callers later. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14512 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smb2_negotiate_context.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libcli/smb/smb2_negotiate_context.h b/libcli/smb/smb2_negotiate_context.h
index 6f7a21a1f3b..1e2e3e8f17d 100644
--- a/libcli/smb/smb2_negotiate_context.h
+++ b/libcli/smb/smb2_negotiate_context.h
@@ -55,8 +55,14 @@ struct smb2_negotiate_context *smb2_negotiate_context_find(const struct smb2_neg
uint16_t type);
#define WINDOWS_CLIENT_PURE_SMB2_NEGPROT_INITIAL_CREDIT_ASK 31
+struct smb3_encryption_capabilities {
+#define SMB3_ENCRYTION_CAPABILITIES_MAX_ALGOS 2
+ uint16_t num_algos;
+ uint16_t algos[SMB3_ENCRYTION_CAPABILITIES_MAX_ALGOS];
+};
+
struct smb311_capabilities {
- uint8_t dummy;
+ struct smb3_encryption_capabilities encryption;
};
#endif /* _LIBCLI_SMB_SMB2_NEGOTIATE_BLOB_H_ */