summaryrefslogtreecommitdiffstats
path: root/librpc/ndr
Commit message (Collapse)AuthorAgeFilesLines
...
* librpc/ndr: Use converted_size to determine if NULL termination was sentAndrew Bartlett2011-06-011-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
* librpc/ndr: add new LIBNDR_FLAG_STR_RAW8 for ndr_pull_stringSean Finney2011-06-012-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>
* librpc/ndr: consolidate string conversion logic in ndr_pull_stringSean Finney2011-06-011-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>
* librpc/ndr Merge ndr_print_sockaddr_storage() into common codeAndrew Bartlett2011-05-182-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
* auth: Move auth_session_info into IDLAndrew Bartlett2011-04-052-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
* Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison2011-03-301-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
* This doesn't look like it has anything to do with character set conversion, ↵Jeremy Allison2011-03-301-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.
* Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison2011-03-291-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
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-242-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
* librpc/ndr: add ndr_push_pipe_chunk_trailer() and ndr_check_pipe_chunk_trailer()Stefan Metzmacher2011-03-102-0/+36
| | | | metze
* librpc/ndr: add ndr_interface_call_pipeStefan Metzmacher2011-03-101-0/+16
| | | | metze
* librpc/ndr use hyper for uid_t/gid_t rather than udlongAndrew Bartlett2011-03-091-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
* librpc/rpc: let ndr_pull_spoolss_EnumPrinterDataEx() use a subcontextStefan Metzmacher2011-03-021-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
* librpc/ndr: handle NOALIGN flag for relative pointers and alignment DATA_BLOBsStefan Metzmacher2011-03-012-5/+14
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 1 17:11:03 CET 2011 on sn-devel-104
* pidl Add support for uid_t and gid_t typesAndrew Bartlett2011-03-012-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
* spoolss.idl: align spoolss_PrinterEnumValues 'data' based on the typeStefan Metzmacher2011-02-282-0/+33
| | | | metze
* 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
* TODO test/review librpc/ndr: let ndr_push/pull_DATA_BLOB() look at ↵Stefan Metzmacher2011-02-281-4/+5
| | | | | | LIBNDR_FLAG_REMAINING before LIBNDR_ALIGN_FLAGS metze
* idl: naming a structure 'VERSION' is not a good idea!Andrew Tridgell2011-02-171-1/+1
| | | | | | this renames it to ntlmssp_VERSION Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libndr: remove prototype for nonexisting function ndr_print_ipv4_addr().Günther Deschner2011-02-171-1/+0
| | | | Guenther
* librpc: move preg.idl to main directory.Günther Deschner2011-02-102-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
* libndr: apply some const and make is_valid_policy_hnd a callback to ↵Günther Deschner2011-02-082-5/+3
| | | | | | policy_handle_empty. Guenther
* libndr: share some uuid helpers.Günther Deschner2011-02-082-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
* ndr: merge ndr_map_error2string and ndr_errstr.Günther Deschner2011-02-081-0/+1
| | | | Guenther
* ndr: move null_ndr_syntax_id to the common libndr location.Günther Deschner2011-02-082-0/+6
| | | | Guenther
* ndr: merge duplicate ndr_map_error2ntstatus() functions.Günther Deschner2011-02-081-0/+25
| | | | Guenther
* libndr: move ndr_print_bool to ndr_basic.cGünther Deschner2011-01-252-0/+7
| | | | Guenther
* idl: Add IDL for remote key backup protocol (rkbp)Matthieu Patou2011-01-122-0/+217
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* wmi: Remove unnecessary noprint statements.Jelmer Vernooij2011-01-012-11/+7
|
* dns: cope with trailing '.' in dns_nameAndrew Tridgell2010-12-211-1/+7
|
* librpc/ndr/ndr_*.c - remove "const" from OIDsMatthias Dieter Wallnöfer2010-12-212-2/+2
|
* dns: fixed the padding for dnsp_name fields in LDAPAndrew Tridgell2010-12-211-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
* dnsp: fixed parsing of dns_name structuresAndrew Tridgell2010-12-211-3/+4
| | | | its not a pad byte, its a trailing zero
* ndr: Another try to support the build on non-IPv6 systemsKai Blin2010-12-081-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
* librpc: fix builds without IPv6 suport (HP-UX 11.00)Björn Jacke2010-11-261-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
* librpc/ndr: use new strlen_m_ext_term() in ndr_charset_length(): fix bug #7594Michael Adam2010-11-031-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
* idl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID valuesKamen Mazdrashki2010-10-311-24/+24
| | | | | Those values are actually ATTID values and such, they are used for ATTIDs for Attributes, Classes and Syntaxes.
* ndr: Make sure ndr_dns.c has no lines wider than 80 charsKai Blin2010-10-272-104/+153
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Wed Oct 27 21:17:50 UTC 2010 on sn-devel-104
* 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-272-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
* s4 dns: Better error handling when parsing invalid or unknown recordsKai Blin2010-10-231-5/+14
|
* s4 dns: Allow more components as part of a domain nameKai Blin2010-10-231-1/+1
|
* s4 dns: Fix a data corruption in the dns_string parsingKai Blin2010-10-231-8/+4
|
* s4 dns: Reply to a name request with an A record.Kai Blin2010-10-232-5/+95
| | | | The first real answer to a DNS request. Still uses hardcoded reply.
* ndr dns: Add simple parserKai Blin2010-10-233-0/+214
|
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-4/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* Revert "libndr: fix "excess elements in struct initializer" warning."Günther Deschner2010-10-051-1/+0
| | | | This reverts commit a416ff26d6ada4ee96bf3963866f67d5788162d1.
* libndr: fix "excess elements in struct initializer" warning.Günther Deschner2010-10-051-0/+1
| | | | Guenther
* ndr: Handle the case of string array with all null terminated stringsMatthieu Patou2010-10-051-4/+16
|