summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr.c
AgeCommit message (Collapse)AuthorFilesLines
2007-12-21r26054: ndr: remove ndr_push/pull_saveStefan Metzmacher1-15/+0
Using a uint32_t offset is all we need metze (This used to be commit 2c06b48a858016f9329dcd73231fb3c7b711a918)
2007-12-21r26050: ndr: don't use ndr_push_save anymoreStefan Metzmacher1-7/+7
metze (This used to be commit a682fbb5af1ca02068fdef9ed9a4dd7b0201d88c)
2007-12-21r25917: ndr: move ndr_map_error2ntstatus to errormap.cStefan Metzmacher1-25/+0
metze (This used to be commit 8fc2e7737fc15f7265816f077e2a48a7a98f75b8)
2007-12-21r25916: ndr: change NTSTAUS into enum ndr_err_code (basic stuff)Stefan Metzmacher1-74/+76
librpc/ndr/ metze (This used to be commit 7e157bbcfd416c3d5c32c1e9fdc746bbee5967bb)
2007-12-21r25907: use DEBUGADD() to match samba3Stefan Metzmacher1-2/+2
metze (This used to be commit d2deefb551ffed5134e31473a3140ec7416cf389)
2007-12-21r25905: use data_blob_const() to set the DATA_BLOBStefan Metzmacher1-2/+1
metze (This used to be commit f3393a731683be3f8664f715dceee0c9fcef4ede)
2007-12-21r25798: - check return value of ndr_push_set_switch_value()Stefan Metzmacher1-1/+8
- fix memory leaks in error pathes metze (This used to be commit 667e83fd78293942c61d141dfe0d90e662768380)
2007-12-21r25797: use error and out logicStefan Metzmacher1-2/+6
metze (This used to be commit d03965d36e18dd524076e48e5a315747a00b807b)
2007-12-21r25796: use NT_STATUS_HAVE_NO_MEMORY()Stefan Metzmacher1-3/+1
metze (This used to be commit 43ef3d9dac5db1865b863c8c4a24c39167e7d2bc)
2007-12-21r25793: check the return value of ndr_push_set_switch_value()Stefan Metzmacher1-1/+1
metze (This used to be commit a85e687e588a7c7e2abb7416631b8815fbae1f58)
2007-12-21r25792: use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK()Stefan Metzmacher1-16/+6
metze (This used to be commit eebc17b27a6d6467546a1f070d5233f6c1755f47)
2007-12-21r25779: the return value of ndr_pull_set_switch_value() should be checkedStefan Metzmacher1-2/+2
metze (This used to be commit 30a829a3596eacc126704904aedbdc1732011411)
2007-12-21r25778: use NT_STATUS_HAVE_NO_MEMORY() and NDR_CHECK() macrosStefan Metzmacher1-22/+10
metze (This used to be commit 99dc12079762ab5b8ceea989cc8fa48ccf084863)
2007-12-21r25777: add NDR_ERR_UNREAD_BYTES and don't use NTSTATUS directlyStefan Metzmacher1-2/+8
metze (This used to be commit 757d547696b1f2903429cfa831c2b0922ab6d2fc)
2007-12-21r25774: create ndr_pull_union_blob_all() and match the logic of the struct fnsStefan Metzmacher1-4/+20
metze (This used to be commit 987deeff55236e2800f8690a5584ff8f7589114e)
2007-12-21r25744: add NDR_ERR_INVALID_POINTERStefan Metzmacher1-0/+2
metze (This used to be commit a75a59370814c02efffbb89e014df75f5a32c04b)
2007-10-10r25316: Remove last few instances of old BOOL type in librpc/.Jelmer Vernooij1-3/+3
(This used to be commit 80d1dd41d4b224c46ad545f0afd97a847b99860b)
2007-10-10r25175: Change to talloc_asprintf_append_buffer().Jeremy Allison1-3/+3
Jeremy. (This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4)
2007-10-10r25000: Fix some more C++ compatibility warnings.Jelmer Vernooij1-6/+9
(This used to be commit 08bb1ef643ab906f1645cf6f32763dc73b1884e4)
2007-10-10r24532: rename struct dcerpc_syntax_id into struct ndr_syntax_idStefan Metzmacher1-2/+2
and move it into misc.idl The goal is to get rid a all dcerpc specific stuff in the generated ndr layer. metze (This used to be commit 2ed014cfb894cccab1654e3f7d5876393e2b52d7)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failureAndrew Tridgell1-1/+2
(This used to be commit 37aa32e2fe4829ec467c606cfcc7485508a2682c)
2007-10-10r21812: fixed an integer overflow error in the ndr push code.Andrew Tridgell1-2/+9
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 (This used to be commit 4766175ff2d0de8af92046e29280c7893ac8fe1f)
2007-10-10r21389: give a better error when our parser hasn't consumed all dataStefan Metzmacher1-2/+2
metze (This used to be commit 03b06398a405e491ce4e2bc91513a57e0d59466f)
2007-10-10r20963: remove unused functions, run LOCAL-TDR by defaultJelmer Vernooij1-14/+0
(This used to be commit 0f34c67fff53d5bd3c1b5a5618190ad7154e8d07)
2007-10-10r19341: ndr_push_union_blob() needs the same fix as ndr_push_struct_blob()Stefan Metzmacher1-0/+2
metze (This used to be commit 5c766ad48d0790b7ae865408fd0dbdb1769da2d8)
2007-10-10r19326: don't leak a ndr_push structure on ndr_push_struct_blob()Andrew Tridgell1-0/+2
(This used to be commit 9817cc235c5fd787855c60fa58f68b14f78cdb94)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij1-1/+1
* 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) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10r15629: fix some warningsStefan Metzmacher1-1/+1
metze (This used to be commit 803a602990b78eaec7b674ef3214b8ccea6a98f3)
2007-10-10r15624: add some useful helper functionsStefan Metzmacher1-0/+48
metze (This used to be commit 8fa6059100d1f6e235bacc722a83a961e460ebb2)
2007-10-10r15427: Rename private to private_data to prevent errors from C++ errors (whichJelmer Vernooij1-6/+6
we care about in Samba3) (This used to be commit eb07aea711a5e3606e169d77b208b03bd876c639)
2007-10-10r14642: fix shadow warningsStefan Metzmacher1-9/+12
metze (This used to be commit 09850fd13334667a2a7a7b6ee24fa3379c67825a)
2007-10-10r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij1-0/+2
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10r13840: Mark some functions as public.Jelmer Vernooij1-57/+57
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
2007-10-10r12856: make the logic much more saneStefan Metzmacher1-3/+7
metze (This used to be commit ed4a3e53fd71679fbdfc2f2932c1098e03026285)
2007-10-10r12803: if we free the ndr structure how should we access the private ↵Stefan Metzmacher1-1/+3
pointer anymore? thanks valgrind! metze (This used to be commit ab58decf8248f3923703fabdaab697f1a8d116c8)
2007-10-10r12634: make the [validate] binding string switch also check to see if theAndrew Tridgell1-0/+36
string form of the structure we receive matches the generated form. This has the effect of checking things like value() attributes. (This used to be commit f2e68ec649658976e5bf4887713a92c14850c277)
2007-10-10r12513: Similar change as my previous commit, but now for transfer syntaxes.Jelmer Vernooij1-0/+11
Avoids converting a static string to GUID every time we check whether a transfer syntax is equal to that of NDR. (This used to be commit 8dcfcaf75ab8cf4a54cf5e56f6be25acc68e3989)
2007-10-10r10141: if some of the LIBNDR_ALIGN_* flags and LIBNDR_FLAG_REMAINING are set,Stefan Metzmacher1-0/+6
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 (This used to be commit b9ea3e8f9f85098b63081bf12e2be65687921874)
2007-10-10r9373: - create a hierachical memory tree with recursiv ndr_pull_* functionsStefan Metzmacher1-0/+2
- 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 (This used to be commit 1a2b8369586642cc9bc15d015c1e4256c3a92732)
2007-10-10r9372: - make the subcontext handling autogenerated code look nicer,Stefan Metzmacher1-34/+64
- unify the handling of subcontext, compression and obfucation metze (This used to be commit 09de7e0af7f9f7539cf63791baf90ac202536176)
2007-10-10r9356: a better way of coping with NULL arrays in the array bounds checking. ↵Andrew Tridgell1-8/+0
This copes with the case of size_is(*size) where size is NULL, and the array is NULL (This used to be commit 56769b4b1d900cce60cd35298b642a85e4eddfee)
2007-10-10r9347: this array bounds checking is harder than it looks ...Andrew Tridgell1-0/+8
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 (This used to be commit ad1b9867a5a14bc9ed2e1a5eb8f05bb2046bc645)
2007-10-10r8519: better method of ensuring null terminationAndrew Tridgell1-1/+3
(This used to be commit f93bd0ced6b0b2b4ee3bf15e53ba30138fd6b533)
2007-10-10r8518: ensure all constructed NDR packets are null terminated. This is neededAndrew Tridgell1-8/+9
by the new ldb code dealing with binary records, but is also a good defensive strategy in general (This used to be commit 17decd129928290a6916a1d1cec73dad924d64f8)
2007-10-10r8210: - make the ndr_token_* function publicStefan Metzmacher1-18/+29
- allow comparison function to be passed for ndr_token_retrive_cmp_fn(), this is for matching the keys, if NULL is passed, the old behavior tok->key == key is used metze (This used to be commit 019f3dc767ef703768df3acdbbd80808c122855c)
2007-10-10r8108: Fix indentation, and remove a discard_const_p() that we don't need ↵Andrew Bartlett1-4/+4
any more. Perhaps like minimal_includes.pl, we should have a way to find these automaticly. Hmm... Andrew Bartlett (This used to be commit d13b9f548e9d3696505178476d2615835cae8fe2)
2007-10-10r7865: changed pidl to take a "const void *" instead of a "void *" for theAndrew Tridgell1-1/+1
structure in ndr_push_*() and ndr_print_*(). The push and print functions really should not modify the structure. metze, to make this work I had to change your spoolss hand marshaller. Can you please check it is OK? I think that the IN and OUT sides of that function are not ever called on the same structure, so I think that attempt at remembering the value by assigning to r->in._offered was not doing anything anyway, but please correct me if I have misunderstood it. If you really do need to remember something on those structures I'd suggest the ndr_token_store() and ndr_token_retrieve() functions, which are used by pidl for just this sort of thing. (This used to be commit eee528be97fa43ca53bdc5652b4d29a0a2caf563)
2007-10-10r7193: add some bail out checks and fix pushing of relative pointersStefan Metzmacher1-2/+19
metze (This used to be commit 58a214d98fc7a2b46a0876e57e05dec82438bc53)
2007-10-10r7186: add [relative_base] property, which is allowed on typedef'sStefan Metzmacher1-53/+123
(maybe we could add them to elements latter...) with this property all relative pointers from inside the struct or union are relative to the struct/union start metze (This used to be commit c0dd18326c058e3e218d43f48ecff418f4b0b51e)