s3:smbd: Use 'enum smb_encryption_setting' values
[samba.git] / source3 / smbd / smb2_tcon.c
index 0dd3c653b4b91a55f2f0c7e4a637ef15b72d47e7..d7e0cf90f47449191a272906a34a81389ae1114e 100644 (file)
@@ -302,13 +302,13 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
                TALLOC_FREE(proxy);
        }
 
-       if ((lp_server_smb_encrypt(snum) >= SMB_SIGNING_DESIRED) &&
+       if ((lp_server_smb_encrypt(snum) >= SMB_ENCRYPTION_DESIRED) &&
            (conn->smb2.server.cipher != 0))
        {
                encryption_desired = true;
        }
 
-       if (lp_server_smb_encrypt(snum) == SMB_SIGNING_REQUIRED) {
+       if (lp_server_smb_encrypt(snum) == SMB_ENCRYPTION_REQUIRED) {
                encryption_desired = true;
                encryption_required = true;
        }