summaryrefslogtreecommitdiff
path: root/librpc/ndr
AgeCommit message (Collapse)AuthorFilesLines
2011-06-10librpc/ndr/ndr_dns.h: fix licence/copyrightGünther Deschner1-0/+25
Guenther
2011-06-10librpc/ndr/ndr_compression.h: fix licence/copyrightGünther Deschner1-0/+22
Guenther
2011-06-10librpc/ndr/ndr_backupkey.h: fix licence/copyrightGünther Deschner1-0/+21
Guenther
2011-06-01Fix type mixing warnings.Jeremy Allison1-2/+2
2011-06-01librpc/ndr: Use converted_size to determine if NULL termination was sentAndrew Bartlett1-4/+10
This is better than doing a strlen() on the string, as that huristic only worked for ASCII strings. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Jun 1 01:42:22 CEST 2011 on sn-devel-104
2011-06-01librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_stringSean Finney2-8/+39
Introduce a new flag, LIBNDR_FLAG_STR_RAW8, which indicates that libndr should not attempt to convert the corresponding byte sequence, and place the responsibility on the caller to do so later. This is needed in cases where the string is known to be 8-bit and either NULL terminated or of known length, but in an unspecified character set. For example, when pulling PT_STRING8 properties from an exchange server via libmapi + libndr, the codepage is neither known nor in the control of the caller, and is determined by subsequent properties requested from the server. Therefore the client would like to fetch all properties in one large batch, and convert the resulting strings locally. This commit also includes some (basic) tests of each of the flags' respective behaviors with the ndr push/pull string functions, in a new source4 torture test suite ndr.ndr_string. Signed-off-by: Sean Finney <seanius@seanius.net>
2011-06-01librpc/ndr: consolidate string conversion logic in ndr_pull_stringSean Finney1-171/+44
Reduce the amount of duplicate code in ndr_pull_string by moving the almost duplicate conversion calls and their corresponding NDR pulls and checks to a single location. In the place of the removed calls is logic allowing the conversion to be generalized, and and any specific pulls/checks that do not apply to the general case. This is similar to what has already been done in the switch statement for ndr_push_string. Signed-off-by: Sean Finney <seanius@seanius.net>
2011-05-18librpc/ndr Merge ndr_print_sockaddr_storage() into common codeAndrew Bartlett2-0/+34
There is no longer a reason to leave this source3 specific, and this brings it into a library (avoiding duplicate symbols). Andrew Bartlett
2011-04-05auth: Move auth_session_info into IDLAndrew Bartlett2-0/+76
This changes auth_session_info_transport to just be a wrapper, rather than a copy that has to be kept in sync. As auth_session_info was already wrapped in python, this required changes to the existing pyauth wrapper and it's users. Andrew Bartlett
2011-03-30Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison1-6/+6
Makes these interfaces much harder to misuse and easier to ensure error checking. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
2011-03-30This doesn't look like it has anything to do with character set conversion, ↵Jeremy Allison1-7/+10
but it does :-). Turns out one of the *really* significant differences between convert_string() in source4 and source3, is that the one in source3 will return 0 for byte length converted when called with dest_len = 0 whereas the one in source4 returns (size_t)-1 and sets errno to E2BIG. Allow the ndr_string code to cope with the (arguably correct) way that the source4 implementation works. This code only gets excercised in the print spooler tests, which aren't run in source4, which is why this bug has lasted for so long. You don't want to know how long it took me to find this :-). Jeremy.
2011-03-29Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison1-1/+2
Preparation for cleaning up this API. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104
2011-03-24charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2-11/+11
convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-10librpc/ndr: add ndr_push_pipe_chunk_trailer() and ndr_check_pipe_chunk_trailer()Stefan Metzmacher2-0/+36
metze
2011-03-10librpc/ndr: add ndr_interface_call_pipeStefan Metzmacher1-0/+16
metze
2011-03-09librpc/ndr use hyper for uid_t/gid_t rather than udlongAndrew Bartlett1-4/+4
This has 8 byte alignment, which is what was specified in pidl for these types. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 9 09:03:09 CET 2011 on sn-devel-104
2011-03-02librpc/rpc: let ndr_pull_spoolss_EnumPrinterDataEx() use a subcontextStefan Metzmacher1-1/+4
This is not strictly needed, but it's good to have the logic in common with the other Enum* calls. This also allows us to play with the NDR_RELATIVE_REVERSE flag. metze
2011-03-01librpc/ndr: handle NOALIGN flag for relative pointers and alignment DATA_BLOBsStefan Metzmacher2-5/+14
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 1 17:11:03 CET 2011 on sn-devel-104
2011-03-01pidl Add support for uid_t and gid_t typesAndrew Bartlett2-0/+62
These are mapped to uint64_t, which should be big enough. This is proposed to be used for internal Samba representations, where it would be more painful to convert all the callers to an uint64_t calling convention. Andrew Bartlett
2011-02-28spoolss.idl: align spoolss_PrinterEnumValues 'data' based on the typeStefan Metzmacher2-0/+33
metze
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-28TODO test/review librpc/ndr: let ndr_push/pull_DATA_BLOB() look at ↵Stefan Metzmacher1-4/+5
LIBNDR_FLAG_REMAINING before LIBNDR_ALIGN_FLAGS metze
2011-02-17idl: naming a structure 'VERSION' is not a good idea!Andrew Tridgell1-1/+1
this renames it to ntlmssp_VERSION Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-17libndr: remove prototype for nonexisting function ndr_print_ipv4_addr().Günther Deschner1-1/+0
Guenther
2011-02-10librpc: move preg.idl to main directory.Günther Deschner2-0/+92
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Feb 10 13:56:49 CET 2011 on sn-devel-104
2011-02-08libndr: apply some const and make is_valid_policy_hnd a callback to ↵Günther Deschner2-5/+3
policy_handle_empty. Guenther
2011-02-08libndr: share some uuid helpers.Günther Deschner2-0/+20
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Feb 8 09:52:56 CET 2011 on sn-devel-104
2011-02-08ndr: merge ndr_map_error2string and ndr_errstr.Günther Deschner1-0/+1
Guenther
2011-02-08ndr: move null_ndr_syntax_id to the common libndr location.Günther Deschner2-0/+6
Guenther
2011-02-08ndr: merge duplicate ndr_map_error2ntstatus() functions.Günther Deschner1-0/+25
Guenther
2011-01-25libndr: move ndr_print_bool to ndr_basic.cGünther Deschner2-0/+7
Guenther
2011-01-12idl: Add IDL for remote key backup protocol (rkbp)Matthieu Patou2-0/+217
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-01-01wmi: Remove unnecessary noprint statements.Jelmer Vernooij2-11/+7
2010-12-21dns: cope with trailing '.' in dns_nameAndrew Tridgell1-1/+7
2010-12-21librpc/ndr/ndr_*.c - remove "const" from OIDsMatthias Dieter Wallnöfer2-2/+2
2010-12-21dns: fixed the padding for dnsp_name fields in LDAPAndrew Tridgell1-4/+18
all names are NUL terminated, but may have additional padding as well Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Dec 21 03:26:26 CET 2010 on sn-devel-104
2010-12-21dnsp: fixed parsing of dns_name structuresAndrew Tridgell1-3/+4
its not a pad byte, its a trailing zero
2010-12-08ndr: Another try to support the build on non-IPv6 systemsKai Blin1-2/+4
Signed-off-by: Matthieu Patou <mat@matws.net> Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Dec 8 10:26:00 CET 2010 on sn-devel-104
2010-11-26librpc: fix builds without IPv6 suport (HP-UX 11.00)Björn Jacke1-0/+2
Kai, please check. Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Fri Nov 26 03:07:21 CET 2010 on sn-devel-104
2010-11-03librpc/ndr: use new strlen_m_ext_term() in ndr_charset_length(): fix bug #7594Michael Adam1-2/+2
This fixes the calculation of needed space for destination unicode charset. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Nov 3 23:28:07 UTC 2010 on sn-devel-104
2010-10-31idl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID valuesKamen Mazdrashki1-24/+24
Those values are actually ATTID values and such, they are used for ATTIDs for Attributes, Classes and Syntaxes.
2010-10-27ndr: Make sure ndr_dns.c has no lines wider than 80 charsKai Blin2-104/+153
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Wed Oct 27 21:17:50 UTC 2010 on sn-devel-104
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 Bartlett2-0/+20
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-10-23s4 dns: Better error handling when parsing invalid or unknown recordsKai Blin1-5/+14
2010-10-23s4 dns: Allow more components as part of a domain nameKai Blin1-1/+1
2010-10-23s4 dns: Fix a data corruption in the dns_string parsingKai Blin1-8/+4
2010-10-23s4 dns: Reply to a name request with an A record.Kai Blin2-5/+95
The first real answer to a DNS request. Still uses hardcoded reply.
2010-10-23ndr dns: Add simple parserKai Blin3-0/+214