From 53e37124e8f0884fc5e24edd7ebc4627a2357a3e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 13 Jul 2021 18:16:10 +0200 Subject: [PATCH] s3:libsmb: make use of 'client smb3 encryption algorithms' Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/libsmb/clientgen.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 8567a81e56b..c81625c9a9b 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -70,15 +70,9 @@ 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 = { - .encryption = { - .num_algos = 2, - .algos = { - SMB2_ENCRYPTION_AES128_GCM, - SMB2_ENCRYPTION_AES128_CCM, - }, - }, - }; + struct smb311_capabilities smb3_capabilities = + smb311_capabilities_parse("client", + lp_client_smb3_encryption_algorithms()); struct GUID client_guid; if (!GUID_all_zero(&cli_state_client_guid)) { -- 2.11.4.GIT