s4:param: make use of 'client smb3 encryption algorithms'
[samba.git] / 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)),
        };
 }