Stefan Metzmacher
bffa192bfe
librpc/ndr: remove 'async' from ndr_interface_call
...
metze
2010-09-28 23:06:47 +02:00
Andrew Tridgell
83a24ff2ef
pidl: prevent ndr_print_*() dying on NULL pointers
...
when using ndrdump you can get uninitialised structures containing
pointers. Don't segfault when trying to print them
2010-09-16 21:09:17 +10:00
Andrew Tridgell
3828c76c76
ndr: allow ndr_print to print DATA_BLOB
...
this prints DATA_BLOB structures using the ndr->print() calls
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-08-14 11:58:13 +10:00
Günther Deschner
7bcd9c5583
libndr: add support for relative_rap_convert.
...
Will not harm anyone, is only used for rare short (2byte) relative pointers, and
relative_rap_convert is always 0 so far (as all init functions using struct
ndr_pull will zero the struct).
Guenther
2010-05-27 23:25:15 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Stefan Metzmacher
31c7780c16
libndr: implement LIBNDR_RELATIVE_REVERSE handling
...
This is based on Guenther's initial code.
metze
2010-02-18 13:44:03 +01:00
Günther Deschner
05347754ee
libndr: store a subcontext buffer size in ndr_push_subcontext_start.
...
Guenther
2010-02-18 13:44:03 +01:00
Günther Deschner
a2c34296fa
libndr: add LIBNDR_FLAG_NO_RELATIVE_REVERSE so that relative reverse processing
...
can be disabled for single structure elements.
Guenther
2010-02-18 13:44:02 +01:00
Günther Deschner
ee13a51b05
libndr: add LIBNDR_FLAG_RELATIVE_REVERSE flag.
...
Guenther
2010-02-18 13:44:02 +01:00
Stefan Metzmacher
98e143cd31
librpc/ndr: make ndr_push_relative_ptr2() static
...
metze
2010-02-18 13:44:01 +01:00
Günther Deschner
bc20d3446a
libndr: add ndr_push_relative_ptr2_start and ndr_push_relative_ptr2_end.
...
Guenther
2010-02-18 13:43:59 +01:00
Brian Lu
a3b7e84a65
librpc/ndr: avoid comparison_fn_t to fix the openchange build on solaris
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-14 11:08:45 +01:00
Stefan Metzmacher
05effef1aa
librpc/ndr: add missing prototypes for relative_short functions
...
metze
2009-12-14 10:58:31 +01:00
Andrew Tridgell
3ce800dcbe
libndr: added a GUID_to_ndr_blob() helper function
...
This can be used in many places that deal with GUIDs
2009-12-10 17:51:28 +11:00
Andrew Tridgell
effff54426
librpc: split out a separate GUID_from_ndr_blob() function
...
This will simplify many of the places that deal with NDR formatted
GUIDs
2009-12-10 17:51:26 +11:00
Stefan Metzmacher
4b6c03a108
librpc/ndr: remember the highest offset we parsed with relative pointer buffers
...
ndr_*_pull_blob_all() will now work if relative pointers are used.
metze
2009-11-20 13:48:35 +01:00
Andrew Tridgell
2bf8a7485c
pidl: get the alignment right for uint1632 enums (NDR64)
...
The default enum in NDR63 is 32 bits, not 16 bits. We need a uint1632
type to get the alignment right.
2009-10-07 09:56:22 +11:00
Günther Deschner
76feeb1b97
libndr: add int3264 ndr prototype.
...
Guenther
2009-10-05 15:10:35 +02:00
Andrew Tridgell
9eb78be4a6
ndr64: added support for trailing gap alignment
...
NDR64 has a 'trailing gap' alignment, which aligns the end of a
structure on the overall structure alignment.
This explains the discrepancy we had with the RPC-SAMR test and NDR64
2009-10-02 12:05:59 +10:00
Andrew Tridgell
64e08fef16
pidl: added union padding for NDR64
...
This fixes the problem with samr UserInfo16 when NDR64 is enabled
2009-09-29 18:08:22 +10:00
Andrew Tridgell
1a1cb92583
ndr: split out ndr enum functions
...
This allows for easier implementation of the NDR32/NDR64 split
2009-09-17 15:19:30 -07:00
Andrew Tridgell
056cbf7f81
ndr: added support for NDR64
...
This adds NDR64 support for the push functions in libndr
2009-09-17 15:19:27 -07:00
Andrew Tridgell
9407ab573e
ndr: added --ndr64 flag to ndrdump
...
This only does pull, but it is useful for w2k8-r2 <-> w2k8-r2 ndrdump
usage, which is always 64bit.
2009-09-16 23:59:53 -07:00
Andrew Tridgell
5c33042498
s4-ndr: fixed memory leaks in ndr_pull_*_blob()
...
We needed to free the ndr structures, both on error and normal return
2009-09-12 15:21:33 +10:00
Günther Deschner
b1ee4c14d4
libndr: add missing protoypes for double type.
...
Guenther
2009-08-24 14:31:22 +02:00
Andrew Tridgell
011f103501
when we get an NDR error in the logs, it is useful to know where it happened
2009-08-12 15:33:37 +10:00
Günther Deschner
35f1e02ca4
librpc: add ndr_size_string_array().
...
Guenther
2009-02-03 15:42:29 +01:00
Jelmer Vernooij
79255cec6a
Add function for mapping NDR error codes to strings.
2009-01-26 17:31:22 +01:00
Jelmer Vernooij
08259c1c52
Add iconv_convenience argument to size functions.
2009-01-01 04:45:33 +01:00
Stefan Metzmacher
2cff27cefd
librpc/ndr: add GUID_hexstring()
...
metze
2008-11-16 16:37:22 +01:00
Andrew Bartlett
536de25fae
Add a new function to parse a DATA_BLOB into a GUID
...
The reason for this new function is to ensure the length is not
discarded when the input is a ldb_val (aka DATA_BLOB) in ldb.
Andrew Bartlett
2008-11-16 16:24:33 +01:00
Jelmer Vernooij
09a63accb8
Move charset library to top level.
2008-10-24 00:06:35 +02:00
Tim Prouty
0b68762af7
Fix "parameter has incomplete type" build warning.
...
When libcli-util was moved to the top level
(3be0f6ea56
) it introduced a build
warning. Since ndr_map_error2ntstatus depends on the definition of
enum ndr_err_code and libndr.h can't be easily included in error.h, I
moved the definition of enum ndr_err_code to libndr.h.
This also eliminates the need for the duplicate definition in proto.h
2008-10-23 12:21:44 -07:00
Jelmer Vernooij
44b728958a
Use common error definitions.
2008-10-23 15:35:21 +02:00
Jelmer Vernooij
0132423a09
Share libndr.h between Samba 3 and Samba 4.
2008-10-15 00:35:13 +02:00