From 78549ea0b2eb07e883ee05c0d1baa6f5776c95d7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 11 Mar 2021 14:38:33 +0100 Subject: [PATCH] s3:libsmb: fill in smb3_capabilities.ciphers BUG: https://bugzilla.samba.org/show_bug.cgi?id=14512 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/libsmb/clientgen.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 2ab661b2c79..8567a81e56b 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -70,7 +70,15 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx, bool use_level_II_oplocks = false; uint32_t smb1_capabilities = 0; uint32_t smb2_capabilities = 0; - struct smb311_capabilities smb3_capabilities = { }; + struct smb311_capabilities smb3_capabilities = { + .encryption = { + .num_algos = 2, + .algos = { + SMB2_ENCRYPTION_AES128_GCM, + SMB2_ENCRYPTION_AES128_CCM, + }, + }, + }; struct GUID client_guid; if (!GUID_all_zero(&cli_state_client_guid)) {