summaryrefslogtreecommitdiffstats
path: root/source4/libcli/smb2
Commit message (Collapse)AuthorAgeFilesLines
* s4:libcli/smb2: initialize ls->lease_versionStefan Metzmacher2014-11-271-0/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:libcli/smb2: add new_epoch to struct smb2_lease_breakStefan Metzmacher2014-11-271-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:libcli/smb2: allow the caller to specify a specific value for max_protocol.Stefan Metzmacher2014-11-272-1/+10
| | | | | | | | The default is still PROTOCOL_LATEST. As smb2_connect*() is about SMB2/3 only we upgrade to PROTOCOL_LATEST if PROTOCOL_NT1 or lower is given. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:libcli/tcon: remove unused smb2_tree_connect*()Stefan Metzmacher2014-09-301-67/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:libcli/smb2: make use of smb2cli_tcon*() in connect.cStefan Metzmacher2014-09-301-30/+25
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:libsmb: remove unused smb2cli.hStefan Metzmacher2014-09-301-1/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s4:libcli/smb2: add smb2_session_channel()Stefan Metzmacher2014-07-242-10/+74
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s4:libcli/smb2: remove unused 'primary' argument of smb2_session_init()Stefan Metzmacher2014-07-242-7/+3
| | | | | | | This also gets rid of a talloc_reference() usage. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s4:libcli: make use of gensec_update_ev()Stefan Metzmacher2014-03-271-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4-libcli: Add smb2_util_handle_empty().Andreas Schneider2013-12-061-0/+9
| | | | | | | Will be used in the next commit. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* libcli4: Remove an unused variableVolker Lendecke2013-10-131-1/+0
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sun Oct 13 17:58:23 CEST 2013 on sn-devel-104
* s4:libcli:smb2: make smbcli_options argument to smb2_connect_(send|ext) constMichael Adam2013-10-051-2/+2
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:libcli:smb2: add the smb2_capabilities to the smbcli_optionsMichael Adam2013-10-051-4/+1
| | | | | | | | | | | and initialize them in lpcfg_smbcli_options() instead of in smb2_transport_init() as previously. This will allow us to control them from callers later. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:libcli:smb2: add the client_guid to the smbcli_optionsMichael Adam2013-10-051-4/+1
| | | | | | | | | | | | and initialize it in lpcfg_smbcli_options() instead of in smb2_transport_init() as previously. Having the client guid in the smbcli_options will allow us to control them from callers later. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb2: Fix opening the rootdirectory, part 1Volker Lendecke2013-08-231-0/+15
| | | | | | | | [MS-SMB2], 2.2.13 says: In the request, the Buffer field MUST be at least one byte in length. Implement that for the 0-length filename without create blobs. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libcli/smb: pass max_dyn_len to smb2cli_req_send()Stefan Metzmacher2013-08-151-3/+6
| | | | | | | | This way we can calculate the correct credit charge for requests with large output buffers. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* libsmb: Use sizeof instead of explicit numbersVolker Lendecke2013-04-301-6/+6
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Apr 30 16:02:19 CEST 2013 on sn-devel-104
* libsmb: Use smb2_lease_push in smb2_create_sendVolker Lendecke2013-04-301-12/+10
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture/smb2: add smb2_lease_v2_create_share() helperStefan Metzmacher2013-04-181-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* s4:libcli/smb2: add support for SMB2 LEASES v2Stefan Metzmacher2013-04-181-5/+43
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* smb2_ioctl: remove ioctl error response assumptionsDavid Disseldorp2013-01-161-3/+34
| | | | | | | | | | | | MS-SMB2 3.3.4.4 documents cases where a ntstatus indicating an error should not be considered a failure. In such a case the output data buffer should be sent to the client rather than an error response packet. Add a new fsctl copy_chunk test to confirm field limits are sent back in response to an oversize chunk request. Reviewed by: Jeremy Allison <jra@samba.org>
* s4:libci: add a SMB2_CREATE_APP_INSTANCE_ID blob to the request if the ↵Michael Adam2012-09-191-0/+25
| | | | in.app_instance_id is present
* s4:libcli/smb2: reset trsnport->compound.related when a compound chain is ↵Stefan Metzmacher2012-08-171-0/+1
| | | | | | finished metze
* s4:libcli/smb2/write correct error checkingChristian Ambach2012-08-061-1/+1
| | | | | | | Server might return STATUS_BUFFER_OVERFLOW, which is not caught by NT_STATUS_IS_ERR Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Mon Aug 6 20:01:01 CEST 2012 on sn-devel-104
* libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()Stefan Metzmacher2012-07-251-0/+1
| | | | metze
* s4:libcli/smb2: remove unused smb2_session->pidStefan Metzmacher2012-07-253-4/+0
| | | | metze
* s4:libcli/smb2: remove unused variableStefan Metzmacher2012-07-251-2/+0
| | | | metze
* libcli/smb: there's no PID field in the SMB2/3 header anymoreStefan Metzmacher2012-07-251-4/+0
| | | | | | It's a reserved field... metze
* libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()Stefan Metzmacher2012-07-251-4/+8
| | | | metze
* s4:libcli/smb2: remove unused elements from smb2_treeStefan Metzmacher2012-07-253-6/+0
| | | | metze
* s4:libcli/smb2: setup a smbXcli_tcon for each smb2_treeStefan Metzmacher2012-07-243-0/+16
| | | | metze
* s4:libcli/smb2: use PROTOCOL_LATESTStefan Metzmacher2012-05-061-1/+1
| | | | metze
* s4:libcli/smb2: fix anonymous session setups against windows serversStefan Metzmacher2012-04-162-1/+16
| | | | | | | | | | | | | Windows server doesn't set the SMB2_SESSION_FLAG_IS_GUEST nor SMB2_SESSION_FLAG_IS_NULL flag. This fix makes sure we don't try to verify a signature on the final session setup response. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Apr 16 14:44:46 CEST 2012 on sn-devel-104
* s4:libcli/smb2: remove unused dependency to LIBPACKETStefan Metzmacher2012-04-162-2/+1
| | | | metze
* LIBCLI_SMB2: Depend on cli_smb_common rather than libsmb.Jelmer Vernooij2012-03-251-1/+1
| | | | | The latter pulls in a fair number of other libraries, including popt and the Samba registry library.
* libsmbclient-raw: Install smb_composite.h.Jelmer Vernooij2012-03-151-1/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Mar 15 02:57:59 CET 2012 on sn-devel-104
* s4:libcli/smb2: allow smb2_session_setup_spnego to handle reauthGregor Beck2012-03-071-0/+12
| | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:libcli:smb2: set SMB2_CAP_ALL in the negprotMichael Adam2012-03-031-1/+5
|
* s4:libcli:smb2: store the share capabilites in the smb2_tree objectMichael Adam2012-03-032-0/+2
|
* smbXcli: add the possiblilty to negotiate client capabilites in smb >= 2.2Michael Adam2012-03-031-1/+2
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4:libcli:smb2: allow max protocol 0x0224Michael Adam2012-03-031-1/+1
|
* s4:libcli:smb2: add support for parsing the durable handle v2 response in ↵Michael Adam2012-03-031-0/+19
| | | | smb2_create_recv()
* s4:libcli:smb2: add support durable handle reconnect v2 blob in smb2_create_sendMichael Adam2012-03-031-0/+27
|
* s4:libcli:smb2: add support durable handle request v2 blob in smb2_create_sendMichael Adam2012-03-031-0/+28
|
* s4:libcli:smb2: add a smb2_connect_ext variant of smb2_connect that takes a ↵Michael Adam2012-02-281-12/+36
| | | | previous_session argument
* s4:libcli:smb2: add a previous session argument to smb2_connect_send()Michael Adam2012-02-281-1/+5
|
* s4:libcli:smb2: add a previous session argument to smb2_session_setup_spnego()Michael Adam2012-02-282-9/+16
| | | | So that we can do a session reconnect.
* s3:libsmb:smb2: pass previous session ID to session setup, not previous sessionMichael Adam2012-02-281-2/+2
| | | | | We only need the session, and under some circumstances, it might complicate things for the caller to have to cope with the whole structure (talloc...).
* s4:libcli/smb2: remove unused 'session_key' from struct smb2_sessionStefan Metzmacher2012-02-272-4/+5
| | | | metze
* libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the ↵Stefan Metzmacher2012-02-271-3/+3
| | | | | | | | | | | | | | | signing_key The signing_key is fix across all channels and is used for session setups on a channel binding. Note: - the last session setup response is signed with the new channel signing key. - the reauth session setups are signed with the channel signing key. It's also not needed to remember the main session key. metze