Stefan Metzmacher
83a746d7f5
libcli/util: add NT_STATUS_FILE_NOT_AVAILABLE
...
metze
2012-08-07 11:16:36 +02:00
Stefan Metzmacher
145335878b
libcli/smb: use forward declaration instead of includes
...
metze
2012-08-07 11:16:36 +02:00
Christian Ambach
4e91ccf16d
smbXcli: add some includes to fix compiler warnings
...
if smbXcli_base.h is included on its own, there are various compiler warnings
about implicitly declared struct iovec and smb2_create_blobs
2012-08-06 18:07:52 +02:00
Stefan Metzmacher
97be49c4d4
libcli/smb: add smb1cli_session_protect_session_key()
...
metze
2012-08-04 09:10:21 +02:00
Stefan Metzmacher
dbefd7d194
libcli/smb: add smb_key_derivation() for TREE_CONNECT_ANDX_EXTENDED_SIGNATURES support
...
metze
2012-08-04 09:10:21 +02:00
Stefan Metzmacher
b1a0fda73d
libcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt header
...
metze
2012-08-04 09:10:21 +02:00
Stefan Metzmacher
d88a6c1dc3
libcli/smb: change smb_signing to skip the NBT_HEADER_SIZE internally
...
metze
2012-08-04 09:10:20 +02:00
Stefan Metzmacher
d3aaa1ebc8
libcli/smb: move some TCON related defines to smb_constants.h
...
metze
2012-08-01 14:17:16 +02:00
Stefan Metzmacher
2f4f2144f4
libcli/smb: remove unused smb2cli_session_application_key()
...
metze
2012-08-01 14:17:13 +02:00
Stefan Metzmacher
5f25567c2e
libcli/smb: add smbXcli_session_application_key()
...
metze
2012-08-01 14:17:12 +02:00
Stefan Metzmacher
7af537e66f
libcli/smb: allow resetting of the smb1 application_key
...
We need this untill we have fixed all callers...
metze
2012-08-01 14:16:01 +02:00
Stefan Metzmacher
68c1eec11d
libcli/smb: let smb1cli_session_set_id() reset the application_key
...
We have some callers which reuse smbXcli_session,
e.g. cli_state_set_uid()
metze
2012-08-01 13:35:21 +02:00
Stefan Metzmacher
c3cb672d38
libcli/smb: add smb1cli_session_set_session_key()
...
metze
2012-08-01 12:30:26 +02:00
Stefan Metzmacher
8cb6557d22
libcli/smb: add basic session->smb2.channel_sequence handling
...
metze
2012-07-26 10:02:07 +02:00
Stefan Metzmacher
fdd98675ac
libcli/smb: add SMB2_HDR_CHANNEL_SEQUENCE
...
metze
2012-07-26 10:02:07 +02:00
Stefan Metzmacher
ba14bc52da
libcli/smb: introduce a smb2cli_session
...
This maintains the shared state between multiple session
channels.
metze
2012-07-26 10:02:07 +02:00
Stefan Metzmacher
46e08eb75f
s3:libcli/smb: add SMB2_SESSION_FLAG_BINDING
...
metze
2012-07-26 00:12:17 +02:00
Stefan Metzmacher
5c3a0cbae0
libcli/smb: setup tcon->smb2.should_encrypt in smb2cli_tcon_set_values()
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jul 25 16:44:22 CEST 2012 on sn-devel-104
2012-07-25 16:44:22 +02:00
Stefan Metzmacher
0aac3c09f1
libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()
...
metze
2012-07-25 14:48:50 +02:00
Stefan Metzmacher
56aa419d87
libcli/smb: there's no PID field in the SMB2/3 header anymore
...
It's a reserved field...
metze
2012-07-25 12:15:05 +02:00
Stefan Metzmacher
7de4ae7f9f
libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()
...
metze
2012-07-25 12:15:04 +02:00
Stefan Metzmacher
a10fe7b252
libcli/smb: add smb2cli_tcon_capabilities()
...
metze
2012-07-25 12:15:03 +02:00
Stefan Metzmacher
20d43a1d30
libcli/smb: pass smbXcli_tcon to smb2cli_ioctl*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
51af8b9600
libcli/smb: pass smbXcli_tcon to smb2cli_query_directory*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
370e7140bb
libcli/smb: pass smbXcli_tcon to smb2cli_query_info*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
6dc701c958
libcli/smb: pass smbXcli_tcon to smb2cli_set_info*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
6612c831a3
libcli/smb: pass smbXcli_tcon to smb2cli_flush*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
86a5ab731b
libcli/smb: pass smbXcli_tcon to smb2cli_write*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
697b82a619
libcli/smb: pass smbXcli_tcon to smb2cli_read*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
74f9b52e65
libcli/smb: pass smbXcli_tcon to smb2cli_close*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
32b33999db
libcli/smb: pass smbXcli_tcon to smb2cli_create*()
...
metze
2012-07-24 22:20:06 +02:00
Stefan Metzmacher
b9100a7ac4
libcli/smb: pass down smbXcli_tcon to smb1cli_req_create/send() and smb1cli_trans*
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 24 21:22:44 CEST 2012 on sn-devel-104
2012-07-24 21:22:44 +02:00
Luk Claes
552dda970c
libcli/smb: add smbXcli_tcon structure
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-24 18:44:04 +02:00
Stefan Metzmacher
43b070d8dd
libcli/smb: pass down smbXcli_session to smb1cli_req_create/send() and smb1cli_trans*
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 24 00:08:58 CEST 2012 on sn-devel-104
2012-07-24 00:08:58 +02:00
Luk Claes
6bff589e33
libcli/smb: introduce smb1.session for uid use
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-23 22:13:29 +02:00
Stefan Metzmacher
4b64ec546f
libcli/smb: set should_encrypt = true if we got SMB2_SESSION_FLAG_ENCRYPT_DATA
...
metze
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jul 23 20:14:07 CEST 2012 on sn-devel-104
2012-07-23 20:14:07 +02:00
Stefan Metzmacher
6b9321071c
libcli/smb: encrypt SMB2 traffic if nedded/desired.
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
6e651dfdc0
libcli/smb: increment nbt_len, when we have the fully created the SMB2 PDU
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
f08adbb4d6
libcli/smb: maintain smb2.should_sign on smbXcli_req_state
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
92811c6f5f
libcli/smb: make use of SMB2_HDR_BODY as header size
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
be8e33ec54
libcli/smb: parse the SMB2_TRANSFORM header and decrypt the SMB2 pdu
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
c2b0a48513
libcli/smb: create 4 iovecs per request in smb2cli_inbuf_parse_compound()
...
The first one might hold the SMB2_TRANSFORM Header later.
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
5863107cd3
libcli/smb: prepare [en|de]cryption_key for SMB3
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
d333edbe14
libcli/smb: copy the application_key in smb2cli_session_create_channel()
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
077eb578be
libcli/smb: check the buffer length in smbXcli_negprot_dispatch_incoming()
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
1c144b07f6
libcli/smb: only pass the smb2 buffer to smb2cli_inbuf_parse_compound()
...
We should hide the transport as much as possible.
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
fd736f7f18
libcli/smb: add smb2_signing_[en|e]crypt_pdu()
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
7e0982421b
libcli/smb: construct the signing_key before forming the message
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
4628e2878f
libcli/smb: add SMB2_SESSION_FLAG_ENCRYPT_DATA
...
metze
2012-07-23 18:19:36 +02:00
Stefan Metzmacher
d7285672b4
libcli/smb: add SMB2_TRANSFORM macros
...
metze
2012-07-23 18:19:36 +02:00