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
Andrew Bartlett
6aa12fcb30
build: Remove SMB_OFF_T, replace with off_t
...
Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
2012-04-06 01:47:43 +02:00
Volker Lendecke
9091aec724
s3: Add sync cli_notify
2012-03-22 12:18:35 +01:00
Andreas Schneider
8080dbad78
s3-lib: Fix util_cmdline which doesn't use popt.
...
This creates its own header file for util_cmdline so it doesn't need to
link against popt.
This should fix linking on FreeBSD.
2012-02-01 21:54:21 +01:00
Jeremy Allison
b44cfdf163
Add cli_open() back as a synchronous wrapper function the calls
...
NtCreateX followed by openX() if NtCreateX is unsupported.
2011-12-03 21:31:32 -08:00
Jeremy Allison
4e709dc42f
Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()
...
with a call that uses NTCreateX in preference to OpenAndX.
2011-12-03 21:13:08 -08: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
665593d6ac
s3:libsmb: add cli_tree_connect() for a generic tree connect
...
metze
2011-11-24 19:02:32 +01: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
Stefan Metzmacher
7221ce9bd5
s3:libsmb: use 'tevent_' instead of 'event_' in clitrans.c
...
metze
2011-10-26 15:43:08 +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
bd8b2754ba
s3:libsmb/smb_seal: make common_ntlm_[en|de]crypt_buffer static
...
metze
2011-10-19 17:32:17 +02:00
Stefan Metzmacher
fa84d41161
s3:libsmb: forward declaration for struct smb_trans_enc_state
...
metze
2011-09-16 16:44:13 +02:00
Stefan Metzmacher
4faad28778
s3:libsmb: remove unused cli_*encryption* functions
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 15 17:52:00 CEST 2011 on sn-devel-104
2011-09-15 17:51:59 +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
3f00cce9b3
s3:libsmb: pass max_protocol to cli_negprot()
...
metze
2011-09-15 10:25:17 +02:00
Stefan Metzmacher
c682472fdf
s3:libsmb: make use of new advanded SMB signing
...
metze
2011-09-14 08:09:15 +02:00
Stefan Metzmacher
d62f1e1e19
s3:libsmb: add cli_state_server_time()
...
metze
2011-09-13 21:53:07 +02:00
Stefan Metzmacher
4154b374d6
s3:libsmb: add cli_state_server_time_zone()
...
metze
2011-09-13 20:50:16 +02:00
Stefan Metzmacher
7ec961d987
s3:libsmb: add cli_state_server_session_key()
...
metze
2011-09-13 20:49:27 +02:00
Stefan Metzmacher
fbd5cb5835
s3:libsmb: add cli_state_security_mode()
...
metze
2011-09-13 18:12:23 +02:00
Stefan Metzmacher
dafeef47b4
s3:libsmb: add cli_state_max_requests()
...
metze
2011-09-13 18:12:23 +02:00
Stefan Metzmacher
2a5f8daa3e
s3:libsmb: add cli_state_available_size()
...
metze
2011-09-13 13:16:07 +02:00
Stefan Metzmacher
3e227d8544
s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
2011-09-08 10:21:50 +02:00
Stefan Metzmacher
cdca1e0ac3
s3:libsmb: pass CLI_FULL_CONNECTION_* flags to cli_state_create()
...
metze
2011-09-08 08:51:48 +02:00
Stefan Metzmacher
ab0a1cc5c6
s3:libsmb: move cli_smb_oplock_break_waiter*() to clioplock.c
...
metze
2011-08-28 17:16:51 +02:00
Stefan Metzmacher
81580429ec
s3:libsmb: make cli_session_setup_spnego() static
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Aug 10 12:31:55 CEST 2011 on sn-devel-104
2011-08-10 12:31:55 +02:00
Stefan Metzmacher
c6a3dedd99
s3:libsmb: store the remote_realm on the cli_state
...
metze
2011-08-10 11:14:55 +02:00
Andrew Bartlett
a942401c1f
s3-ntlmssp Use auth_ntlmssp_*() functions in more places
...
This allows auth_ntlmssp_get_ntlmssp_state() to be removed.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-08-03 18:48:02 +10:00
Stefan Metzmacher
233336d0c2
s3:libsmb: add cli_state_protocol()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
24c5427810
s3:libsmb: add cli_state_capabilities()
...
metze
2011-08-02 04:54:28 +02:00
Stefan Metzmacher
824a300d2b
s3:libsmb: cli_set_secdesc() only needs a const struct security_descriptor
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Jul 23 11:08:19 CEST 2011 on sn-devel-104
2011-07-23 11:08:19 +02:00
Stefan Metzmacher
6219bb9899
s3:libsmb: remove unused cli_query_secdesc_old()
...
metze
2011-07-23 09:55:54 +02:00
Björn Baumbach
cb4fc92177
s3-libsmb: introduce new cli_query_secdesc() which returns NTSTATUS
...
Replacement for cli_query_secdesc_old()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:57 +02:00
Björn Baumbach
768646c9a2
s3-libsmb: rename cli_query_secdesc() to cli_query_secdesc_old()
...
Will introduce new cli_query_secdesc() function
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:56 +02:00
Björn Baumbach
40e9d0c440
s3-libsmb: finally remove cli_read_old()
...
Replaced by new cli_read() which returns NTSTATUS instead of ssize_t.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:56 +02:00
Stefan Metzmacher
6d4f9fc251
s3:libsmb: move cli_state->desthost to cli_state->conn.remote_name
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jul 22 18:17:41 CEST 2011 on sn-devel-104
2011-07-22 18:17:41 +02:00
Stefan Metzmacher
b87bd59ecb
s3:libsmb: add cli_state_remote_name()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
b3e0b73280
s3:libsmb: remove const from cli_cm_display()
...
metze
2011-07-22 17:06:09 +02:00
Stefan Metzmacher
5c7749ac24
s3:libsmb: only pass const sockaddr_storage to cli_full_connection()
...
No direct or indirect caller needs this to be set.
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
1eb8c2ae22
s3:libsmb: only pass a const sockaddr_storage to cli_start_connection()
...
Let the caller use cli_state_remote_sockaddr() if needed.
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
0cd70ec169
s3:libsmb: let cli_connect_nb() only expect a const sockaddr_storage *dest_ss
...
Only one caller expects this value to be set,
which now calls cli_state_remote_sockaddr() to get the value.
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
fa42d2e262
s3:libsmb: add cli_state_[local|remote]_sockaddr()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
ebe258dd40
s3:libsmb: replace cli_initialise[_ex]() by cli_state_create()
...
This makes sure cli_state->src_ss and cli_state->dest_ss are always
initialized.
metze
2011-07-21 22:08:53 +02:00
Stefan Metzmacher
25447a528a
s3:libsmb: move cli->vuid to cli->smb1.uid and hide it behind cli_state_[g|s]et_uid()
...
metze
2011-07-21 22:08:52 +02:00
Stefan Metzmacher
c70103f3f8
s3:libsmb: add cli_state_encryption_on()
...
metze
2011-07-21 22:08:51 +02:00
Björn Baumbach
8c360d7f76
s3-libsmb: introduce new NTSTATUS cli_read()
...
Replacement for cli_read_old()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-20 22:09:25 +02:00
Björn Baumbach
9b168e128a
s3-libsmb: replace cli_read() with cli_read_old()
...
Will introduce new cli_read() function.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-20 22:09:25 +02:00
Stefan Metzmacher
8f41e54d53
s3:libsmb: move cli->cnum to cli->smb1.tid and hide it behind cli_state_[g|s]et_tid()
...
metze
2011-07-20 15:56:27 +02:00
Stefan Metzmacher
1e3822115c
s3:libsmb: move cli->pid to cli->smb1.pid and hide it behind cli_[g|s]etpid()
...
metze
2011-07-20 15:55:08 +02:00
Stefan Metzmacher
9fb7e228f5
s3:libsmb: add cli->smb1.vc_num and hide it behind cli_state_get_vc_num()
...
This makes it clearer, why we send the pid value in the session setup.
metze
2011-07-20 15:54:31 +02:00
Björn Baumbach
2052c2d6fa
s3-libsmb: remove unused cli_lock()
...
Replaced with cli_lock32()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 19 00:43:03 CEST 2011 on sn-devel-104
2011-07-19 00:43:03 +02:00
Stefan Metzmacher
8a234cbe15
s3:libsmb: remove unused cli_oplock_handler()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jul 12 10:53:52 CEST 2011 on sn-devel-104
2011-07-12 10:53:52 +02:00
Stefan Metzmacher
7bba81f69d
s3:libsmb: add cli_state_disconnect()
...
metze
2011-07-11 18:18:26 +02:00
Stefan Metzmacher
2b70c0f4f3
s3:libsmb: remove unused cli_set_port()
...
metze
2011-07-11 16:39:15 +02:00
Björn Baumbach
f2c5a0afd2
s3-libsmb: let cli_lock64 return NTSTATUS instead of bool
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Jul 11 12:48:38 CEST 2011 on sn-devel-104
2011-07-11 12:48:38 +02:00
Björn Baumbach
57194d8c5d
s3-libsmb: introduce cli_lock32()
...
Same like cli_lock() but return NTSTATUS instead of bool
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-11 11:36:50 +02:00
Stefan Metzmacher
0f006751ec
s3:libsmb: remove unused clistr_push_fn()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
30574a73d8
s3:libsmb: remove unused clistr_pull_fn()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
eaeeb5ce0e
s3:libsmb: add trans2_bytes_push_bytes()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
ed99caded2
s3:libsmb: make trans2_bytes_push_str() non-static
...
We should use this and get rid of clistr_push().
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
2b0cc3c412
s3:libsmb: use clistr_pull_talloc() in cli_get_fs_volume_info()
...
metze
2011-07-06 17:18:13 +02:00
Volker Lendecke
26782fbbf3
s3: make cli_resolve_path return NTSTATUS
...
This looks larger than it is. No parameters needed changing.
2011-07-06 08:35:27 +02:00
Volker Lendecke
80838491e6
s3: Make cli_cm_open return NTSTATUS
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jul 3 23:57:53 CEST 2011 on sn-devel-104
2011-07-03 23:57:53 +02:00
Volker Lendecke
c1094a8cb0
s3: Add cli_readlink
2011-07-03 11:31:29 +02:00
Volker Lendecke
bbe8e0bcf4
s3: Add cli_symlink
2011-06-24 21:24:17 +02:00
Volker Lendecke
829974c940
s3: Add symlink reparse point marshalling routines
2011-06-24 21:24:17 +02:00
Volker Lendecke
8e02b70767
s3: Add incomplete cli_nttrans_create
...
secdesc only at this moment
2011-06-19 11:08:12 +02:00
Stefan Metzmacher
fdfb5e95fe
s3:libsmb: remove unused cli_state_seqnum infrastructure
...
metze
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jun 10 20:37:54 CEST 2011 on sn-devel-104
2011-06-10 20:37:54 +02:00
Günther Deschner
ed10726abc
source3/libsmb/proto.h: fix licence/copyright
...
Guenther
2011-06-10 15:12:32 +02:00
Volker Lendecke
c7c0e4ca71
s3: Remove unused cli_session_request
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun May 29 22:25:55 CEST 2011 on sn-devel-104
2011-05-29 22:25:55 +02:00
Volker Lendecke
4ee443d7b3
s3: Remove unused cli_connect
2011-05-29 21:17:27 +02:00
Volker Lendecke
5676f817c7
s3: Remove unused attempt_netbios_session_request
2011-05-29 14:39:12 +02:00
Volker Lendecke
57ae32794f
s3: Add called name_type param to cli_connect_nb
2011-05-28 20:50:09 +02:00
Volker Lendecke
defcd409a3
s3: Add cli_connect_nb
...
This builds up a cli_state until after the netbios session setup. It makes use
of smbsock_connect, so it connects to 139 and 445 simultaneously. This improves
the connection to Windows 2008 which does not listen on *SMBSERVER anymore.
2011-05-28 10:29:53 +02:00
Volker Lendecke
18ec1dab59
s3: Remove unused cli_get_nt_error
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 23 16:54:21 CEST 2011 on sn-devel-104
2011-05-23 16:54:21 +02:00
Volker Lendecke
502a9924ca
s3: Remove unused cli_set_nt_error
2011-05-23 15:45:37 +02:00
Volker Lendecke
fddb944a04
s3: Remove unused cli_reset_error
2011-05-23 15:45:37 +02:00
Volker Lendecke
28d7282738
s3: Remove unused cli_[en|de]crypt_message
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon May 23 12:15:33 CEST 2011 on sn-devel-104
2011-05-23 12:15:33 +02:00
Volker Lendecke
df0e33008e
s3: Remove cli_send/receive_smb
...
A moment of silence is due here, R.I.P.
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun May 22 22:17:12 CEST 2011 on sn-devel-104
2011-05-22 22:17:12 +02:00
Volker Lendecke
feb1d9fef3
s3: Remove clistr_align_out
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 21 23:31:12 CEST 2011 on sn-devel-104
2011-05-21 23:31:12 +02:00
Volker Lendecke
dca321f62b
s3: Remove unused cli_setup_bcc
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 21 21:24:13 CEST 2011 on sn-devel-104
2011-05-21 21:24:13 +02:00
Volker Lendecke
d432c7e278
s3: Remove unused cli_setup_packet()
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri May 20 10:51:36 CEST 2011 on sn-devel-104
2011-05-20 10:51:36 +02:00
Volker Lendecke
622faa2687
s3: Fix including libsmb/proto.h without prior ads.h
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 7 11:38:11 CEST 2011 on sn-devel-104
2011-05-07 11:38:11 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00