Andrew Bartlett
344eb08ee4
nterr: Add mem_ctx for return string from get_nt_error_c_code()
...
It is clearer to avoid the implicit return on talloc_tos()
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Jeremy Allison
a5a84415e2
Fix broken interface to set_namearray() - don't modify incoming string.
2011-05-06 01:44:07 +02:00
Jeremy Allison
e131c94ac1
More const fixes for compiler warnings from the waf build.
2011-05-05 23:56:07 +02:00
Jeremy Allison
4f41be356a
Fix many const compiler warnings.
2011-05-05 10:41:59 -07:00
Jeremy Allison
ff215f5c89
I added them, so I get to kill them :-). Finally remove all uses of safe_strcpy and safe_strcat. Change to strlcpy, strlcat.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May 4 22:14:14 CEST 2011 on sn-devel-104
2011-05-04 22:14:14 +02:00
Günther Deschner
b8eaec6b66
s3-vfs: make vfswrap_llistxattr and vfswrap_flistxattr static.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May 4 12:31:10 CEST 2011 on sn-devel-104
2011-05-04 12:31:09 +02:00
Günther Deschner
9c48345e32
s3-proto: move remaining krb5 protos to krb5_protos.h
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue May 3 15:38:40 CEST 2011 on sn-devel-104
2011-05-03 15:38:40 +02:00
Andrew Bartlett
80f1d49b61
lib/util/charset Use push_string and talloc_strupper/strlower from common code
...
The only caller of push_string() (not to be confused with
push_string_check()) in the common code was encode_pw_buffer(), and it
didn't use the alignment or STR_UPPER flags.
The talloc_strupper() and talloc_strlower() functions are tested in
smbtorture, and are next_codepoint() based.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Andrew Bartlett
7c083caf74
s3-lib make push_ucs2() static
2011-05-03 07:37:07 +02:00
Andrew Bartlett
fbea52f74a
lib/util Move more network utility functions from source3 into lib/util
...
This will help with the merge of the interfaces layer.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Günther Deschner
56cd3b3bbb
s3-rpc_server: (re)move last globally included rpc_server prototypes.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon May 2 16:05:31 CEST 2011 on sn-devel-104
2011-05-02 16:05:31 +02:00
Günther Deschner
daa02f34b1
s3-proto: move remaining srvsvc protos to own header file.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c233c21425
s3-proto: move remaining spoolss protos to own header file.
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
047d8c073b
s3-proto: move more rpc_server prototypes out of proto.h
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c6fe379a46
s3-rpc_server: remove proto of nonexisting function
...
(rpc_pipe_register_commands).
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
c1f3ff7340
s3-util: move valid_share_pathname() to lib/util.c
...
Guenther
2011-05-02 15:03:43 +02:00
Günther Deschner
49d5f62b42
s3-proto: move rpc_srv_register protos and structs to town headerfile.
...
Guenther
2011-05-02 15:03:43 +02:00
Volker Lendecke
d87427973c
s3: Make name_resolve_bcast return sockaddr_storage
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
2011-04-30 20:40:46 +02:00
Volker Lendecke
020b691cf8
s3: Remove ip_sevice from get_ipc_connect_master_ip
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Apr 30 18:16:28 CEST 2011 on sn-devel-104
2011-04-30 18:16:28 +02:00
Andrew Bartlett
1018dd1826
s3-lib: Rely on uint64_t in conv_str_size()
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Apr 30 05:58:35 CEST 2011 on sn-devel-104
2011-04-30 05:58:35 +02:00
Günther Deschner
bbacaec4e9
s3-proto: move more headers to rpc_server/rpc_ncacn_np.h where they origin from.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Apr 29 22:05:07 CEST 2011 on sn-devel-104
2011-04-29 22:05:07 +02:00
Günther Deschner
bc781bf7d9
s3-proto: remove duplicate prototypes.
...
Guenther
2011-04-29 21:01:05 +02:00
Günther Deschner
c7d38f49c8
s3-proto: move rpc_server/rpc_handles.c protos to ntdomain.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
faf1175125
s3-proto: move more librpc prototypes to librpc/rpc/dcerpc.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
d6289641f5
s3-proto: remove remaining nss_info prototypes to nss_info.h
...
Guenther
2011-04-29 21:01:04 +02:00
Günther Deschner
12476223c6
s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.
...
Guenther
2011-04-29 12:19:04 +02:00
Andrew Bartlett
93ace5cc24
lib/util Re-merge the string_sub() and all_string_sub() from source3
...
Andrew Bartlett
2011-04-29 16:38:15 +10:00
Andrew Bartlett
6021af4fd3
libcli/smb Move attrib_string in common
2011-04-29 16:38:14 +10:00
Andrew Bartlett
724915f721
s3-client Add TALLOC_CTX argument to attrib_string().
...
This ensures the caller knows where the memory was allocated.
Andrew Bartlett
2011-04-29 16:38:14 +10:00
Andrew Bartlett
0df4061cff
lib/util/charset Merge talloc-based pull and push charset functions
...
These were copied from source3/lib/charcnv.c
Andrew Bartlett
2011-04-28 05:30:20 +02:00
Volker Lendecke
ca9ac7c4c7
s3: Remove cli_write
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Volker Lendecke
d018fccb70
s3: Add cli_writeall
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-26 12:22:55 -07:00
Volker Lendecke
23a6af46c8
s3: Add a 10-second timeout for the 445 or netbios connection to a DC
2011-04-25 09:50:32 +02:00
Günther Deschner
bb65187b89
s3-proto: move more rpc client prototypes to cli_pipe.h.
...
Guenther
2011-04-21 18:28:07 +02:00
Andrew Bartlett
79e6fea774
lib/util/charset create _handle functions for convert_string() et al
...
This is now API compatible with the existing code in lib/util/charset
lazy_initialize_conv() is no longer called as init_iconv() is called
when the smb.conf is processed, and get_conv_handle() will auto-init
with defaults if required.
load_case_tables_library() is no longer requried as all binaries and
libraries already load these in their entry points, as otherwise all
the other string functions would fail.
Andrew Bartlett
2011-04-20 04:31:07 +02:00
Andrew Bartlett
e1078b87de
lib/util Move alpha_strcpy() from s3 into common code
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr 14 09:21:59 CEST 2011 on sn-devel-104
2011-04-14 09:21:59 +02:00
Andrew Bartlett
b1873be59b
s3-lib Remove unused string_append
2011-04-14 12:47:45 +10:00
Andrew Bartlett
72dcf6d47c
s3-lib Move unix_strlower and unix_strupper to their only users.
2011-04-14 12:42:52 +10:00
Andrew Bartlett
aad2c19da7
s3-lib Remove unused str_ascii_charnum()
2011-04-14 12:34:51 +10:00
Andrew Bartlett
9d62ee2a81
s3-lib Move strisnormal to it's only user in mangle_hash.c
2011-04-14 12:31:18 +10:00
Günther Deschner
165521e20d
s3: only include smb profiling where needed.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr 14 01:31:39 CEST 2011 on sn-devel-104
2011-04-14 01:31:39 +02:00
Andrew Bartlett
4158e9a7e5
s3-charcnv: Move convert_string() et al to lib/util/charset
...
This is the first step to this being the common convert_string
implementation.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:08 +10:00
Andrew Bartlett
9941dfe9f6
lib/util/charset Move source3/lib/util_unistr.c to the common code.
...
This file (largely) contains functions to deal with UTF16 strings.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
ce2f217bd2
s3-lib Move strdup_w to it's only user in mangle_hash.c
...
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
e3138f2ffe
s3-lib Move isvalid83_w to mangle_hash.c
...
This means that there is no need for the 'valid.dat' table to be
loaded by anything other than smbd, so the unloader is also removed.
The concept of a 'valid dos character' has been replaced by the hash2
mangle method.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
d458f6b3bd
s3-lib make static and remove more _w functions
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
ba2b7f72c0
s3-lib Remove unused skip_unibuf()
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
8fcda44a1f
s3-lib: Remove unused _w functions.
...
In general we don't manipulate UTF16 strings internally, particularly
as they are also multibyte, so are no easier to work with than UTF8.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
43deb9745b
s3-lib Remove more unused fstring.c functions
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00
Andrew Bartlett
c8a5fa3fa9
s3-charcnv: make pull_ucs2 static
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-13 14:47:07 +10:00