Jelmer Vernooij
2f29f80e07
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
61ad78ac98
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
28b1d36551
r26432: Require ndr_pull users to specify iconv_convenience.
2007-12-21 05:50:02 +01:00
Jelmer Vernooij
7352206f44
r26431: Require ndr_push creators to specify a iconv_convenience context.
2007-12-21 05:50:00 +01:00
Jelmer Vernooij
d37136b7ab
r26429: Avoid use of global_smb_iconv_convenience.
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
bf072c6fb3
r26427: Avoid global_smb_iconv_convenience.
2007-12-21 05:49:53 +01:00
Stefan Metzmacher
2c06b48a85
r26054: ndr: remove ndr_push/pull_save
...
Using a uint32_t offset is all we need
metze
2007-12-21 05:45:49 +01:00
Stefan Metzmacher
a682fbb5af
r26050: ndr: don't use ndr_push_save anymore
...
metze
2007-12-21 05:45:47 +01:00
Stefan Metzmacher
8fc2e7737f
r25917: ndr: move ndr_map_error2ntstatus to errormap.c
...
metze
2007-12-21 05:44:55 +01:00
Stefan Metzmacher
7e157bbcfd
r25916: ndr: change NTSTAUS into enum ndr_err_code (basic stuff)
...
librpc/ndr/
metze
2007-12-21 05:44:55 +01:00
Stefan Metzmacher
d2deefb551
r25907: use DEBUGADD() to match samba3
...
metze
2007-12-21 05:44:48 +01:00
Stefan Metzmacher
f3393a7316
r25905: use data_blob_const() to set the DATA_BLOB
...
metze
2007-12-21 05:44:47 +01:00
Stefan Metzmacher
667e83fd78
r25798: - check return value of ndr_push_set_switch_value()
...
- fix memory leaks in error pathes
metze
2007-12-21 05:44:03 +01:00
Stefan Metzmacher
d03965d36e
r25797: use error and out logic
...
metze
2007-12-21 05:44:03 +01:00
Stefan Metzmacher
43ef3d9dac
r25796: use NT_STATUS_HAVE_NO_MEMORY()
...
metze
2007-12-21 05:44:02 +01:00
Stefan Metzmacher
a85e687e58
r25793: check the return value of ndr_push_set_switch_value()
...
metze
2007-12-21 05:44:01 +01:00
Stefan Metzmacher
eebc17b27a
r25792: use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK()
...
metze
2007-12-21 05:44:01 +01:00
Stefan Metzmacher
30a829a359
r25779: the return value of ndr_pull_set_switch_value() should be checked
...
metze
2007-12-21 05:43:55 +01:00
Stefan Metzmacher
99dc120797
r25778: use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK() macros
...
metze
2007-12-21 05:43:55 +01:00
Stefan Metzmacher
757d547696
r25777: add NDR_ERR_UNREAD_BYTES and don't use NTSTATUS directly
...
metze
2007-12-21 05:43:54 +01:00
Stefan Metzmacher
987deeff55
r25774: create ndr_pull_union_blob_all() and match the logic of the struct fns
...
metze
2007-12-21 05:43:53 +01:00
Stefan Metzmacher
a75a593708
r25744: add NDR_ERR_INVALID_POINTER
...
metze
2007-12-21 05:43:40 +01:00
Jelmer Vernooij
80d1dd41d4
r25316: Remove last few instances of old BOOL type in librpc/.
2007-10-10 15:07:13 -05:00
Jeremy Allison
0844dbf597
r25175: Change to talloc_asprintf_append_buffer().
...
Jeremy.
2007-10-10 15:06:46 -05:00
Jelmer Vernooij
08bb1ef643
r25000: Fix some more C++ compatibility warnings.
2007-10-10 15:05:27 -05:00
Stefan Metzmacher
2ed014cfb8
r24532: rename struct dcerpc_syntax_id into struct ndr_syntax_id
...
and move it into misc.idl
The goal is to get rid a all dcerpc specific stuff in the
generated ndr layer.
metze
2007-10-10 15:02:11 -05:00
Andrew Tridgell
fcf38a38ac
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Tridgell
37aa32e2fe
r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
2007-10-10 14:49:31 -05:00
Andrew Tridgell
4766175ff2
r21812: fixed an integer overflow error in the ndr push code.
...
This needs to be fixed in Samba3 as well. It might be exploitable (I
haven't confirmed one way or the other), so I think this should be
fixed for 3.0.25
2007-10-10 14:49:31 -05:00
Stefan Metzmacher
03b06398a4
r21389: give a better error when our parser hasn't consumed all data
...
metze
2007-10-10 14:48:24 -05:00
Jelmer Vernooij
0f34c67fff
r20963: remove unused functions, run LOCAL-TDR by default
2007-10-10 14:44:04 -05:00
Stefan Metzmacher
5c766ad48d
r19341: ndr_push_union_blob() needs the same fix as ndr_push_struct_blob()
...
metze
2007-10-10 14:21:13 -05:00
Andrew Tridgell
9817cc235c
r19326: don't leak a ndr_push structure on ndr_push_struct_blob()
2007-10-10 14:21:09 -05:00
Jelmer Vernooij
f7afa1cb77
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
803a602990
r15629: fix some warnings
...
metze
2007-10-10 14:07:25 -05:00
Stefan Metzmacher
8fa6059100
r15624: add some useful helper functions
...
metze
2007-10-10 14:07:24 -05:00
Jelmer Vernooij
eb07aea711
r15427: Rename private to private_data to prevent errors from C++ errors (which
...
we care about in Samba3)
2007-10-10 14:05:36 -05:00
Stefan Metzmacher
09850fd133
r14642: fix shadow warnings
...
metze
2007-10-10 13:59:04 -05:00
Jelmer Vernooij
51b4270513
r14542: Remove librpc, libndr and libnbt from includes.h
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
9a188eb1f4
r13840: Mark some functions as public.
2007-10-10 13:52:14 -05:00
Stefan Metzmacher
ed4a3e53fd
r12856: make the logic much more sane
...
metze
2007-10-10 13:50:54 -05:00
Stefan Metzmacher
ab58decf82
r12803: if we free the ndr structure how should we access the private pointer anymore?
...
thanks valgrind!
metze
2007-10-10 13:49:57 -05:00
Andrew Tridgell
f2e68ec649
r12634: make the [validate] binding string switch also check to see if the
...
string form of the structure we receive matches the generated
form. This has the effect of checking things like value() attributes.
2007-10-10 13:49:10 -05:00
Jelmer Vernooij
8dcfcaf75a
r12513: Similar change as my previous commit, but now for transfer syntaxes.
...
Avoids converting a static string to GUID every time we check whether
a transfer syntax is equal to that of NDR.
2007-10-10 13:47:49 -05:00
Stefan Metzmacher
b9ea3e8f9f
r10141: if some of the LIBNDR_ALIGN_* flags and LIBNDR_FLAG_REMAINING are set,
...
ndr_pull_data_blob() doesn't work correct. so make them exclute each other.
jelmer, tridge: does that look correct? it fixes a problem, abartlet had
with krb5pac.idl, where the align flags are inherited from the parent, and we want to get the
[flag(NDR_REMAINING)] DATA_BLOB signature;
metze
2007-10-10 13:38:02 -05:00
Stefan Metzmacher
1a2b836958
r9373: - create a hierachical memory tree with recursiv ndr_pull_* functions
...
- with this it's also possible to talloc_free() the ndr_pull structure
and talloc_steal(ndr->current_mem_ctx); to fetch the whole data of the hierachical tree
- if the toplevel struct is a valid talloc pointer it's also possible to use
NDR_PULL_SET_MEM_CTX(ndr, mem_ctx); to the the toplevel pointer with the struct pointer
(NOTE: no callers are using this yet, but they shortly will)
metze
2007-10-10 13:33:29 -05:00
Stefan Metzmacher
09de7e0af7
r9372: - make the subcontext handling autogenerated code look nicer,
...
- unify the handling of subcontext, compression and obfucation
metze
2007-10-10 13:33:29 -05:00
Andrew Tridgell
56769b4b1d
r9356: a better way of coping with NULL arrays in the array bounds checking. This copes with the
...
case of size_is(*size) where size is NULL, and the array is NULL
2007-10-10 13:33:27 -05:00
Andrew Tridgell
ad1b9867a5
r9347: this array bounds checking is harder than it looks ...
...
this copes with 2 more situations:
1) where the array is NULL, which would previously be coped with by a
if (ptr) check, but now in the deferred array bounds checking needs
to look at the array variable in the ndr code. Not nice.
2) nest the array checking along with the SCALARS vs BUFFERS checks, ensuring we don't
do array bounds checking for a buffer when in scalars only mode
2007-10-10 13:33:27 -05:00
Andrew Tridgell
f93bd0ced6
r8519: better method of ensuring null termination
2007-10-10 13:29:34 -05:00