Stefan Metzmacher
d0bca41f48
s3:libsmb: s/struct event_context/struct tevent_context
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-02-19 23:47:54 +01:00
Stefan Metzmacher
c8dda78e35
s3:libsmb: make use of samba_tevent_context_init()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-02-19 23:47:46 +01:00
Scott Lovenberg
bd18d996e2
Clean up client timeout definitions [rev. 2]
...
The definitions for default client timeout values have been moved to client.h. When initializing a client struct we use this value instead of the old hardcoded value. The timeout value remains 20 seconds.
Signed-off-by: Scott Lovenberg <scott.lovenberg@gmail.com>
Reviewed by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Dec 6 03:25:58 CET 2012 on sn-devel-104
2012-12-06 03:25:58 +01:00
Stefan Metzmacher
4e1306c46a
s3:libsmb: make cli_echo* protocol independent
...
metze
2012-09-29 10:10:32 +02:00
Stefan Metzmacher
0ec50e8a2f
s3:libsmb: remove unused cli_state->user_session_key
...
metze
2012-08-01 14:17:15 +02:00
Stefan Metzmacher
ed726281b3
s3:libsmb: use a smbXcli_tcon instead of uint16_t cli_state->smb1.tid
...
metze
2012-07-24 18:44:04 +02:00
Stefan Metzmacher
20e4392b25
s3:libsmb: make use of cli_state_[g|s]et_tid()
...
metze
2012-07-24 18:44:04 +02:00
Andrew Bartlett
9521cd0409
param: Make the 'unicode' parameter common
...
This parameter is most useful for interop testing, rather than production use.
Andrew Bartlett
2012-07-24 10:46:12 +10:00
Luk Claes
cdec0c4646
s3:libsmb: use cli_state_{g,s}et_uid instead of smb1.uid directly
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-23 22:13:29 +02:00
Volker Lendecke
93e950caf8
s3: Add cli_state->pw_nt_hash
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Stefan Metzmacher
a868a51eca
s3:libsmb: remove unused 'inbuf' variable
...
metze
2012-06-05 17:33:49 +02:00
Luk Claes
4688107800
s3:libsmb: get rid of cli_ucs2
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon May 28 16:58:03 CEST 2012 on sn-devel-104
2012-05-28 16:58:03 +02:00
Luk Claes
f7f73c4dba
s3:libsmb: get rid of cli_has_async_calls
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:50 +02:00
Luk Claes
82895ab22f
s3:libsmb: get rid of cli_state_disconnect
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:49 +02:00
Luk Claes
1ff8c404a6
s3:libsmb: get rid of cli_state_server_time_zone
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:48 +02:00
Luk Claes
278ba9928a
s3:libsmb: get rid of cli_state_security_mode
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:48 +02:00
Luk Claes
5f10bd9fe4
s3:libsmb: get rid of cli_state_server_gss_blob
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:48 +02:00
Luk Claes
2be7e23b99
s3:libsmb: get rid of cli_state_server_challenge
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:47 +02:00
Luk Claes
ab052c7ff0
s3:libsmb: get rid of cli_state_encryption_on
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:47 +02:00
Luk Claes
6c18a66f3e
s3:libsmb: get rid of cli_state_max_requests
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:47 +02:00
Luk Claes
7c69ca09d0
s3:libsmb: get rid of cli_state_server_session_key
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:46 +02:00
Luk Claes
3c9c06ac05
s3:libsmb: get rid of cli_state_capabilities
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:46 +02:00
Luk Claes
d8c0646a5d
s3:libsmb: get rid of cli_state_protocol
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:45 +02:00
Luk Claes
4f6f4ea93c
s3:libsmb: get rid of cli_state_remote_name
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:45 +02:00
Luk Claes
987e81b0ee
s3:libsmb: get rid of cli_state_*_sockaddr
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:44 +02:00
Luk Claes
8e24e7f6b8
s3:libsmb: get rid of cli_sockopt
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:44 +02:00
Luk Claes
f43231c051
s3:libsmb: remove unused (un)set_pending functions
...
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-28 14:49:44 +02:00
Jelmer Vernooij
c0288e0612
lib/util: Remove obsolete sys_getpid() and sys_fork().
...
The performance of these is minimal (these days) and they can return
invalid results when used as part of applications that do not use
sys_fork().
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
2012-03-24 21:55:40 +01:00
Stefan Metzmacher
8dc1873ff5
s3:libsmb: pass smb2 capabilities and client guid in cli_state_create()
...
metze
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-03 17:03:07 +01:00
Michael Adam
ac43937ce4
smbXcli: add the possiblilty to negotiate client capabilites in smb >= 2.2
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-03-03 17:03:07 +01:00
Jeremy Allison
af76d2588c
After a discussion with Volker, sdd a backup_intent state to the client struct.
...
This causes the backup_intent flags to be added to findfirst/findnext
and ntcreate/nttrans_create calls.
cli_set_backup_intent() sets the flag and returns the old value of
its state.
2011-12-01 13:24:22 -08:00
Stefan Metzmacher
9ebdee2817
s3:libsmb: implement cli_state based functions on top of smbXcli_conn/smbXcli_req
...
metze
2011-11-24 19:02:31 +01:00
Björn Baumbach
e4934a1e42
s3-libsmb: introduce option to disable dos error mapping
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-11-16 19:02:12 +01:00
Stefan Metzmacher
c96292c710
s3:libsmb: always init cli->{server_os,server_domain,server_type}
...
We should do that at creation time of cli_state.
metze
2011-11-16 14:07:35 +01:00
Stefan Metzmacher
a7051dfcff
s3:libsmb: make use of SMB_SIGNING_* constants
...
metze
2011-11-03 16:55:13 +01:00
Stefan Metzmacher
44d7774a18
s3:param: the behavior of "client/server signing = auto" is the same as "true"
...
So remove the special case for 'Auto'.
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
09fe037b64
s3:libsmb: restore the 3.6.x behavior signing config parameters
...
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
1fa7300037
libcli/smb: move smb_signing.[ch] to the toplevel
...
metze
2011-10-25 01:47:21 +02:00
Stefan Metzmacher
75d146d3ed
libcli/smb: move smb_seal.c to the toplevel
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Oct 21 10:22:39 CEST 2011 on sn-devel-104
2011-10-21 10:22:39 +02:00
Stefan Metzmacher
1b9c8d4867
s3:include: move smb_seal.c prototypes to smb_crypt.h
...
metze
2011-10-19 17:32:23 +02:00
Stefan Metzmacher
ef8dc2d30e
s3:libsmb: move cli->server{zone,time} to cli->conn.smb1.server.{time_zone,system_time}
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 15 14:00:29 CEST 2011 on sn-devel-104
2011-09-15 14:00:26 +02:00
Stefan Metzmacher
aca5e33b00
s3:libsmb: split cli->secblob into cli->conn.smb1.server.{guid,gss_blob,challenge,workgroup}
...
metze
2011-09-15 12:12:28 +02:00
Stefan Metzmacher
a00f543aa6
s3:libsmb: add cli_state_server_challenge() and cli_state_server_gss_blob()
...
metze
2011-09-15 12:12:27 +02:00
Stefan Metzmacher
dcf54977d7
s3:libsmb: move cli->sesskey to cli->conn.smb1.server.session_key
...
metze
2011-09-15 12:12:25 +02:00
Stefan Metzmacher
596aa96d17
s3:libsmb: move cli->sec_mode to cli->conn.smb1.server.security_mode
...
metze
2011-09-15 12:12:24 +02:00
Stefan Metzmacher
8f44105cc4
s3:libsmb: move cli->max_mux to cli->conn.smb1.server.max_mux
...
metze
2011-09-15 12:12:24 +02:00
Stefan Metzmacher
768581eee5
s3:libsmb: move cli->max_xmit to cli->conn.smb1.max_xmit
...
And keep cli->conn.smb1.client.max_xmit and
cli->conn.smb1.server.max_xmit.
metze
2011-09-15 12:12:24 +02:00
Stefan Metzmacher
b02d27ae05
s3:libsmb: move cli->smb1.mid to cli->conn.smb1.mid
...
metze
2011-09-15 12:12:23 +02:00
Stefan Metzmacher
595f0020d4
s3:libsmb: move cli->capabilities to cli->conn.smb1.capabilities
...
And keep cli->conn.smb1.client.capabilities and
cli->conn.smb1.server_capabilities.
metze
2011-09-15 12:12:23 +02:00
Stefan Metzmacher
74a581afe5
s3:libsmb: move cli->protocol to cli->conn.protocol
...
metze
2011-09-15 12:12:22 +02:00