summaryrefslogtreecommitdiffstats
path: root/librpc/ndr/ndr.c
Commit message (Collapse)AuthorAgeFilesLines
* librpc/ndr remove _SAMBA_BUILD_ conditionalsAndrew Bartlett2011-07-061-3/+0
|
* librpc/ndr: add ndr_push_pipe_chunk_trailer() and ndr_check_pipe_chunk_trailer()Stefan Metzmacher2011-03-101-0/+34
| | | | metze
* librpc/ndr: handle NOALIGN flag for relative pointers and alignment DATA_BLOBsStefan Metzmacher2011-03-011-2/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 1 17:11:03 CET 2011 on sn-devel-104
* TODO test/review librpc/ndr: remove align2 hack for relative pointersStefan Metzmacher2011-02-281-5/+1
| | | | metze
* librpc/ndr: ndr align relative pointers based on the given flagsStefan Metzmacher2011-02-281-0/+26
| | | | | | | We used to do this only for the reverse relative pointers and now we always do it. metze
* ndr: move null_ndr_syntax_id to the common libndr location.Günther Deschner2011-02-081-0/+5
| | | | Guenther
* librpc/ndr/ndr.c - fix some counter typesMatthias Dieter Wallnöfer2010-10-271-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
* librpc Make ndrdump use printf() rather than having to mess with DEBUG()Andrew Bartlett2010-10-271-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
* ndr: allow ndr_print to print DATA_BLOBAndrew Tridgell2010-08-141-5/+15
| | | | | | this prints DATA_BLOB structures using the ndr->print() calls Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-38/+18
|
* charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell2010-03-181-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.
* librpc/ndr: don't overwrite the content in ndr_push_relative_ptr2_end()Stefan Metzmacher2010-02-191-2/+8
| | | | metze
* libndr: fix ndr_size_* calculation with relative reverse buffersStefan Metzmacher2010-02-181-0/+6
| | | | metze
* libndr: for now align reverse relative pointers to 2 bytes by default.Stefan Metzmacher2010-02-181-0/+3
| | | | | | | This is just a hack and we should let the callers use FLAG_ALIGN2 explicit in future. metze
* libndr: implement LIBNDR_RELATIVE_REVERSE handlingStefan Metzmacher2010-02-181-3/+86
| | | | | | This is based on Guenther's initial code. metze
* libndr: store a subcontext buffer size in ndr_push_subcontext_start.Günther Deschner2010-02-181-0/+1
| | | | Guenther
* libndr: give an error when ndr_push_relative_ptr2_start()/_end() is used ↵Stefan Metzmacher2010-02-181-1/+6
| | | | | | with the RELATIVE_REVERSE flag metze
* libndr: add LIBNDR_FLAG_NO_RELATIVE_REVERSE so that relative reverse processingGünther Deschner2010-02-181-0/+3
| | | | | | can be disabled for single structure elements. Guenther
* libndr: change subcontext buffer allocation to allocate on subcontext_start.Günther Deschner2010-02-181-3/+7
| | | | Guenther
* librpc/ndr: make ndr_push_relative_ptr2() staticStefan Metzmacher2010-02-181-1/+1
| | | | metze
* libndr: add ndr_push_relative_ptr2_start and ndr_push_relative_ptr2_end.Günther Deschner2010-02-181-0/+24
| | | | Guenther
* librpc/ndr: add support for relative_short pointersMatthieu Patou2009-12-121-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>
* librpc/ndr: remember the highest offset we parsed with relative pointer buffersStefan Metzmacher2009-11-201-6/+21
| | | | | | ndr_*_pull_blob_all() will now work if relative pointers are used. metze
* ndr: split out ndr enum functionsAndrew Tridgell2009-09-171-4/+4
| | | | This allows for easier implementation of the NDR32/NDR64 split
* ndr: added support for NDR64 Andrew Tridgell2009-09-171-0/+3
| | | | This adds NDR64 support for the push functions in libndr
* ndr: added --ndr64 flag to ndrdumpAndrew Tridgell2009-09-161-3/+3
| | | | | This only does pull, but it is useful for w2k8-r2 <-> w2k8-r2 ndrdump usage, which is always 64bit.
* s4-ndr: fixed memory leaks in ndr_pull_*_blob()Andrew Tridgell2009-09-121-9/+16
| | | | We needed to free the ndr structures, both on error and normal return
* fix the ndr print routines for samba4Andrew Tridgell2009-09-031-0/+15
| | | | | This uses a hackish #if just for samba4. The proper fix is much more complex.
* Fix for DSSYNC test against Windows 2003Anatoliy Atanasov2009-09-031-0/+1
|
* Revert "avoid crashes in ndr_print_*() calls"Andrew Tridgell2009-06-121-5/+0
| | | | | | This reverts commit f5a47dc4bf2793ab328c8b0e35adace497819e7d. This change broke Samba3. We'll need to do it the long way.
* avoid crashes in ndr_print_*() callsAndrew Tridgell2009-06-121-0/+5
| | | | This is a hackish fix, but it will do for now
* Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslogVolker Lendecke2009-03-101-5/+5
| | | | I think we eventually need to pass down the debuglevel here.
* Add function for mapping NDR error codes to strings.Jelmer Vernooij2009-01-261-0/+35
|
* librpc: Fix warning caused by some empty debug stringsTim Prouty2009-01-201-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.
* ndr_print: fix the output ndr debug messages only add header line onceStefan Metzmacher2009-01-191-0/+6
| | | | | metze (from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583)
* Add iconv_convenience argument to size functions.Jelmer Vernooij2009-01-011-4/+4
|
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-021-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.
* Share ndr.c implementation.Jelmer Vernooij2008-10-131-0/+1118