s4:param: make use of 'client smb3 encryption algorithms'
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Jul 2021 16:16:10 +0000 (18:16 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Jul 2021 00:06:31 +0000 (00:06 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/param/loadparm.c

index a71f6542b745077af3f68cb32ccd6a631026aff4..9a040e2913efbd257a3753e7ec95afcf0c122282 100644 (file)
@@ -50,15 +50,8 @@ void lpcfg_smbcli_options(struct loadparm_context *lp_ctx,
                .smb2_capabilities = SMB2_CAP_ALL,
                .client_guid = GUID_random(),
                .max_credits = WINDOWS_CLIENT_PURE_SMB2_NEGPROT_INITIAL_CREDIT_ASK,
-               .smb3_capabilities = {
-                       .encryption = {
-                               .num_algos = 2,
-                               .algos = {
-                                       SMB2_ENCRYPTION_AES128_GCM,
-                                       SMB2_ENCRYPTION_AES128_CCM,
-                               },
-                       },
-               },
+               .smb3_capabilities = smb311_capabilities_parse("client",
+                       lpcfg_client_smb3_encryption_algorithms(lp_ctx)),
        };
 }