summaryrefslogtreecommitdiff
path: root/librpc/ndr/ndr.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-20libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ↵Jelmer Vernooij1-7/+8
ndr_ prefix. This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2011-07-06librpc/ndr remove _SAMBA_BUILD_ conditionalsAndrew Bartlett1-3/+0
2011-03-10librpc/ndr: add ndr_push_pipe_chunk_trailer() and ndr_check_pipe_chunk_trailer()Stefan Metzmacher1-0/+34
metze
2011-03-01librpc/ndr: handle NOALIGN flag for relative pointers and alignment DATA_BLOBsStefan Metzmacher1-2/+6
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 1 17:11:03 CET 2011 on sn-devel-104
2011-02-28TODO test/review librpc/ndr: remove align2 hack for relative pointersStefan Metzmacher1-5/+1
metze
2011-02-28librpc/ndr: ndr align relative pointers based on the given flagsStefan Metzmacher1-0/+26
We used to do this only for the reverse relative pointers and now we always do it. metze
2011-02-08ndr: move null_ndr_syntax_id to the common libndr location.Günther Deschner1-0/+5
Guenther
2010-10-27librpc/ndr/ndr.c - fix some counter typesMatthias Dieter Wallnöfer1-3/+4
The "depth" is "uint32_t" Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed Oct 27 08:13:40 UTC 2010 on sn-devel-104
2010-10-27librpc Make ndrdump use printf() rather than having to mess with DEBUG()Andrew Bartlett1-0/+19
This means it no longer needs to force the debug level etc. (this builds on the fine work by Volker to create dump_data_cb()) Andrew Bartlett
2010-08-14ndr: allow ndr_print to print DATA_BLOBAndrew Tridgell1-5/+15
this prints DATA_BLOB structures using the ndr->print() calls Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-38/+18
2010-03-18charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell1-2/+4
We had a crash bug where a cached copy of a iconv convenience pointer was used after being freed when loadparm asked for iconv to reload. This could happen if a python module used a iconv based function before loadparm was completed. The fix is to ensure that any use of this pointer remains valid, by reusing the pointer itself when it has already been initialised, but filling in the child elements with the updated values.
2010-02-19librpc/ndr: don't overwrite the content in ndr_push_relative_ptr2_end()Stefan Metzmacher1-2/+8
metze
2010-02-18libndr: fix ndr_size_* calculation with relative reverse buffersStefan Metzmacher1-0/+6
metze
2010-02-18libndr: for now align reverse relative pointers to 2 bytes by default.Stefan Metzmacher1-0/+3
This is just a hack and we should let the callers use FLAG_ALIGN2 explicit in future. metze
2010-02-18libndr: implement LIBNDR_RELATIVE_REVERSE handlingStefan Metzmacher1-3/+86
This is based on Guenther's initial code. metze
2010-02-18libndr: store a subcontext buffer size in ndr_push_subcontext_start.Günther Deschner1-0/+1
Guenther
2010-02-18libndr: give an error when ndr_push_relative_ptr2_start()/_end() is used ↵Stefan Metzmacher1-1/+6
with the RELATIVE_REVERSE flag metze
2010-02-18libndr: add LIBNDR_FLAG_NO_RELATIVE_REVERSE so that relative reverse processingGünther Deschner1-0/+3
can be disabled for single structure elements. Guenther
2010-02-18libndr: change subcontext buffer allocation to allocate on subcontext_start.Günther Deschner1-3/+7
Guenther
2010-02-18librpc/ndr: make ndr_push_relative_ptr2() staticStefan Metzmacher1-1/+1
metze
2010-02-18libndr: add ndr_push_relative_ptr2_start and ndr_push_relative_ptr2_end.Günther Deschner1-0/+24
Guenther
2009-12-12librpc/ndr: add support for relative_short pointersMatthieu Patou1-0/+42
relative_short is like relative but instead of having the offset coded on 4 bytes it's coded on 2 bytes. Such things happen in GET_DFS_REFERAL messages. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-20librpc/ndr: remember the highest offset we parsed with relative pointer buffersStefan Metzmacher1-6/+21
ndr_*_pull_blob_all() will now work if relative pointers are used. metze
2009-09-17ndr: split out ndr enum functionsAndrew Tridgell1-4/+4
This allows for easier implementation of the NDR32/NDR64 split
2009-09-17ndr: added support for NDR64 Andrew Tridgell1-0/+3
This adds NDR64 support for the push functions in libndr
2009-09-16ndr: added --ndr64 flag to ndrdumpAndrew Tridgell1-3/+3
This only does pull, but it is useful for w2k8-r2 <-> w2k8-r2 ndrdump usage, which is always 64bit.
2009-09-12s4-ndr: fixed memory leaks in ndr_pull_*_blob()Andrew Tridgell1-9/+16
We needed to free the ndr structures, both on error and normal return
2009-09-03fix the ndr print routines for samba4Andrew Tridgell1-0/+15
This uses a hackish #if just for samba4. The proper fix is much more complex.
2009-09-03Fix for DSSYNC test against Windows 2003Anatoliy Atanasov1-0/+1
2009-06-12Revert "avoid crashes in ndr_print_*() calls"Andrew Tridgell1-5/+0
This reverts commit f5a47dc4bf2793ab328c8b0e35adace497819e7d. This change broke Samba3. We'll need to do it the long way.
2009-06-12avoid crashes in ndr_print_*() callsAndrew Tridgell1-0/+5
This is a hackish fix, but it will do for now
2009-03-10Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslogVolker Lendecke1-5/+5
I think we eventually need to pass down the debuglevel here.
2009-01-26Add function for mapping NDR error codes to strings.Jelmer Vernooij1-0/+35
2009-01-20librpc: Fix warning caused by some empty debug stringsTim Prouty1-3/+3
It would probably be better to create a new macro such as DEBUGHDR to allow empty strings for debug statements, but for the short term this eliminates the warning with no negative consequences.
2009-01-19ndr_print: fix the output ndr debug messages only add header line onceStefan Metzmacher1-0/+6
metze (from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583)
2009-01-01Add iconv_convenience argument to size functions.Jelmer Vernooij1-4/+4
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij1-2/+2
Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
2008-10-13Share ndr.c implementation.Jelmer Vernooij1-0/+1118