summaryrefslogtreecommitdiffstats
path: root/libcli/smb
Commit message (Collapse)AuthorAgeFilesLines
...
* build: Build with system md5.h on OpenIndianaAndrew Bartlett2013-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | This changes (again...) our system md5 detection to cope with how OpenIndiana does md5. I'm becoming increasingly convinced this isn't worth our while (we should have just done samba_md5...), but for now this change seems to work on FreeBSD, OpenIndiana and Linux with libbsd. This needs us to rename struct MD5Context -> MD5_CTX, but we provide a config.h define to rename the type bad if MD5_CTX does not exist (it does however exist in the md5.h from libbsd). Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jun 19 21:32:36 CEST 2013 on sn-devel-104
* libcli: Add smb2_lease marshallingVolker Lendecke2013-04-303-0/+94
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* libsmb: Move "struct smb2_lease" to commonVolker Lendecke2013-04-303-0/+45
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* libcli/smb: add SMB2_LEASE_FLAG_* definesStefan Metzmacher2013-04-181-0/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* libcli/smb: smb1cli_inbuf_parse_chain() and smb1cli_conn_dispatch_incoming() ↵Jeremy Allison2013-03-201-2/+2
| | | | | | | | | | should use smb_len_tcp. They have to cope with large READX call replies that have a length greater than smb_len_nbt() can handle. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* libcli/smb: defer failing for missing NEGOTIATE_SECURITY_SIGNATURES_ENABLEDStefan Metzmacher2013-03-201-0/+9
| | | | | | | | Windows servers take a look at the FLAGS2_SMB_SECURITY_SIGNATURES_REQUIRED flag during a session setup and turn on signing if the client requires it. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libcli/smb: add SMB_CAP_LEGACY_CLIENT_MASK defineStefan Metzmacher2013-03-201-0/+10
| | | | | | | | | Older Samba releases (<= 3.6.x) expect the client to send CAP_LARGE_READX in order to let the client use large reads. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libcli/smb: make use of samba_tevent_context_init()Stefan Metzmacher2013-02-1914-15/+15
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Add new function smbXcli_session_copy(), to be used when creating compound ↵Jeremy Allison2013-01-302-0/+29
| | | | | | | | | | SMB2 requests. Copies the signing state needed to make client compound requests work on signed connections. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
* smb2_ioctl: split ioctl handler code on device typeDavid Disseldorp2013-01-161-0/+2
| | | | | | | Add per device type ioctl handler source files for FSCTL_DFS, FSCTL_FILESYSTEM, FSCTL_NAMED_PIPE and FSCTL_NETWORK_FILESYSTEM. Reviewed by: Jeremy Allison <jra@samba.org>
* libcli: Fix smb2cli_ioctl_send() if clause.Andreas Schneider2012-12-211-1/+1
| | | | | | | Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* Fix Bug 9422 - large read requests cause server to issue malformed replyVolker Lendecke2012-11-301-1/+1
| | | | | | | Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Nov 30 03:27:07 CET 2012 on sn-devel-104
* libcli/smb: add smbXcli_session_set_disconnect_expired() (bug #9175)Stefan Metzmacher2012-11-012-0/+35
| | | | | | | | This should be a short term hack until the upper layers have implemented re-authentication. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* libcli/smb: fix unitialized padding in smb2_create_blob_push_one() (bug #9209)Stefan Metzmacher2012-10-271-1/+1
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Oct 27 10:05:22 CEST 2012 on sn-devel-104
* libcli/smb: add smb1cli_echo*Stefan Metzmacher2012-09-293-0/+181
| | | | metze
* libcli/smb: add smb2cli_echo*Stefan Metzmacher2012-09-293-0/+130
| | | | metze
* libcli/smb: use an explicit TALLOC_FREE(subreq) in smb2cli_*Stefan Metzmacher2012-09-299-0/+9
| | | | metze
* Fix bug #9209 - Parse of invalid SMB2 create blob can cause smbd crash.Jeremy Allison2012-09-271-3/+2
| | | | | | | | | | Ensure we correctly protect against blobs with data_offset==0 and data_length != 0. Jeremy. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Sep 27 22:07:02 CEST 2012 on sn-devel-104
* libcli: add a define for the APP_INSTANCE_ID smb2 create contextMichael Adam2012-09-191-0/+1
|
* libcli/smb: fix padding in smb2_create_blob*Stefan Metzmacher2012-09-191-11/+30
| | | | metze
* libcli/smb: split out a smb_transport private libraryStefan Metzmacher2012-08-251-3/+15
| | | | metze
* libcli/smb: wscript_build => wscriptStefan Metzmacher2012-08-251-1/+2
| | | | | | We'll need some configure checks in future. metze
* libcli/smb: make sure the SMB2_TRANSFORM pdu is completeStefan Metzmacher2012-08-171-3/+12
| | | | metze
* libcli/smb: support broken OS/2 error responses bug #9096Stefan Metzmacher2012-08-161-3/+57
| | | | | | | | | OS/2 skips the DATA Block in SMB1 responses. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 16 13:16:49 CEST 2012 on sn-devel-104
* libcli/smb: verify decrypted SMB2 pdus correctlyStefan Metzmacher2012-08-151-2/+38
| | | | | | | | | | | | | | We need to make sure we got a encrypted response if we asked for it. If we don't get a encrypted response, we use a similar logic as with signing to propagated wellknown errors to the higher layer and set state->smb2.signing_skipped = true. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Aug 15 16:26:26 CEST 2012 on sn-devel-104
* libcli/smb: fix parsing of compounded messages within a SMB2_TRANSFORM pduStefan Metzmacher2012-08-151-5/+12
| | | | | | | | | One SMB2_TRANSFORM pdu wraps multiple SMB2 pdus. We inject the SMB2_TRANSFORM header to each response which was wrapped inside. This allows the next layer to verify if the SMB2 pdu was encrypted. metze
* libcli/smb: fix smb2cli_req_compound_submit for multiple encrypted messagesStefan Metzmacher2012-08-151-63/+104
| | | | | | There should be only one SMB2_TRANSFORM header for all compound requests. metze
* libcli/smb: all flags except SMB2_HDR_FLAG_ASYNC should be cleared in a ↵Stefan Metzmacher2012-08-151-0/+6
| | | | | | cancel request. metze
* libcli/smb: do not set SMB2_TF_MSG_SIZE in the callerStefan Metzmacher2012-08-081-3/+0
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Aug 8 07:32:55 CEST 2012 on sn-devel-104
* libcli/smb: smb2_signing_[en|de]crypt_pdu() check and set SMB2_TF_MSG_SIZEStefan Metzmacher2012-08-081-6/+16
| | | | metze
* libcli/smb: use forward declaration instead of includesStefan Metzmacher2012-08-071-3/+2
| | | | metze
* smbXcli: add some includes to fix compiler warningsChristian Ambach2012-08-061-0/+3
| | | | | if smbXcli_base.h is included on its own, there are various compiler warnings about implicitly declared struct iovec and smb2_create_blobs
* libcli/smb: add smb1cli_session_protect_session_key()Stefan Metzmacher2012-08-042-0/+25
| | | | metze
* libcli/smb: add smb_key_derivation() for ↵Stefan Metzmacher2012-08-042-1/+49
| | | | | | TREE_CONNECT_ANDX_EXTENDED_SIGNATURES support metze
* libcli/smb: pass hdr/len to smb_signing_check/sign_pdu() and skip the nbt headerStefan Metzmacher2012-08-043-17/+25
| | | | metze
* libcli/smb: change smb_signing to skip the NBT_HEADER_SIZE internallyStefan Metzmacher2012-08-041-19/+24
| | | | metze
* libcli/smb: move some TCON related defines to smb_constants.hStefan Metzmacher2012-08-011-0/+13
| | | | metze
* libcli/smb: remove unused smb2cli_session_application_key()Stefan Metzmacher2012-08-012-21/+0
| | | | metze
* libcli/smb: add smbXcli_session_application_key()Stefan Metzmacher2012-08-012-0/+33
| | | | metze
* libcli/smb: allow resetting of the smb1 application_keyStefan Metzmacher2012-08-011-2/+6
| | | | | | We need this untill we have fixed all callers... metze
* libcli/smb: let smb1cli_session_set_id() reset the application_keyStefan Metzmacher2012-08-011-0/+1
| | | | | | | We have some callers which reuse smbXcli_session, e.g. cli_state_set_uid() metze
* libcli/smb: add smb1cli_session_set_session_key()Stefan Metzmacher2012-08-012-0/+36
| | | | metze
* libcli/smb: add basic session->smb2.channel_sequence handlingStefan Metzmacher2012-07-262-0/+34
| | | | metze
* libcli/smb: add SMB2_HDR_CHANNEL_SEQUENCEStefan Metzmacher2012-07-261-0/+1
| | | | metze
* libcli/smb: introduce a smb2cli_sessionStefan Metzmacher2012-07-261-107/+93
| | | | | | | This maintains the shared state between multiple session channels. metze
* s3:libcli/smb: add SMB2_SESSION_FLAG_BINDINGStefan Metzmacher2012-07-261-1/+4
| | | | metze
* libcli/smb: setup tcon->smb2.should_encrypt in smb2cli_tcon_set_values()Stefan Metzmacher2012-07-251-1/+16
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jul 25 16:44:22 CEST 2012 on sn-devel-104
* libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()Stefan Metzmacher2012-07-252-0/+2
| | | | metze
* libcli/smb: there's no PID field in the SMB2/3 header anymoreStefan Metzmacher2012-07-2512-21/+4
| | | | | | It's a reserved field... metze
* libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()Stefan Metzmacher2012-07-2512-70/+30
| | | | metze