s3:smb2_negprot: announce multi channel support (disabled)
authorMichael Adam <obnox@samba.org>
Wed, 20 Jan 2016 23:16:33 +0000 (00:16 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 22 Jan 2016 23:08:36 +0000 (00:08 +0100)
This disabled for now. Will be enabled by config setting
once underpinnings are ready.

Pair-Programmed-With: Guenther Deschner <gd@samba.org>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_negprot.c

index c04fbca863f68df5038caa9175bac8d43036ed1e..158207225a032a4902f341ebcc134bb9981b3a8b 100644 (file)
@@ -485,6 +485,14 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
                xconn->smb2.server.cipher = SMB2_ENCRYPTION_AES128_CCM;
        }
 
+       if (protocol >= PROTOCOL_SMB2_22 &&
+           xconn->client->server_multi_channel_enabled)
+       {
+               if (in_capabilities & SMB2_CAP_MULTI_CHANNEL) {
+                       capabilities |= SMB2_CAP_MULTI_CHANNEL;
+               }
+       }
+
        security_offset = SMB2_HDR_BODY + 0x40;
 
 #if 1