diff options
author | Ralph Boehme <slow@samba.org> | 2015-11-13 10:35:58 +0100 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2016-01-22 07:52:20 +0100 |
commit | 736cd36d36ea4985c7bcff19c683bc140566da4c (patch) | |
tree | 0aba452583425f7a5c482236b4427c0a85a3b9cd /source3 | |
parent | bfdffea0fa8e6af57c2b3e51472bab46d46fbaca (diff) | |
download | samba-736cd36d36ea4985c7bcff19c683bc140566da4c.tar.gz |
s3:smb2_server: store encryption cipher in the channel
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/librpc/idl/smbXsrv.idl | 1 | ||||
-rw-r--r-- | source3/smbd/smb2_sesssetup.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source3/librpc/idl/smbXsrv.idl b/source3/librpc/idl/smbXsrv.idl index ab4937e43f3..109151b94a2 100644 --- a/source3/librpc/idl/smbXsrv.idl +++ b/source3/librpc/idl/smbXsrv.idl @@ -129,6 +129,7 @@ interface smbXsrv [noprint] DATA_BLOB signing_key; uint32 auth_session_info_seqnum; [ignore] smbXsrv_connection *connection; + uint16 encryption_cipher; } smbXsrv_channel_global0; typedef struct { diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index eb1c3b5258d..2b83d1e24bf 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -297,6 +297,8 @@ static NTSTATUS smbd_smb2_auth_generic_return(struct smbXsrv_session *session, xconn->smb2.server.dialect)); return NT_STATUS_ACCESS_DENIED; } + } else { + x->global->channels[0].encryption_cipher = xconn->smb2.server.cipher; } if (x->global->encryption_flags & SMBXSRV_ENCRYPTION_DESIRED) { |