summaryrefslogtreecommitdiffstats
path: root/librpc/ndr/uuid.c
Commit message (Collapse)AuthorAgeFilesLines
* libndr: apply some const and make is_valid_policy_hnd a callback to ↵Günther Deschner2011-02-081-4/+2
| | | | | | policy_handle_empty. Guenther
* libndr: share some uuid helpers.Günther Deschner2011-02-081-0/+17
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Feb 8 09:52:56 CET 2011 on sn-devel-104
* s3-librpc: Fixed GUID_from_data_blob() with length of 32.Andreas Schneider2010-06-291-5/+5
| | | | | | If we hit the case that the blob length is 32. The code goes to the end of the function and generates a GUID with garbage. So try to convert the blob to the GUID and return.
* librpc: Use switch in GUID_from_data_blob().Andreas Schneider2010-06-281-7/+16
|
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-2/+2
|
* librpc: fixed the GUID_compare() functionAndrew Tridgell2009-12-211-5/+5
| | | | | | | | | | | | When comparing two unsigned values you can't just subtract them. Imagine you are comparing: "uint32_t u1" and "uint32_t u2". If you use "u1 - u2" and u2 is zero, then the signed integer result will depend on the top bit of u1. This error occurs in a few places in Samba. For DRS replication it resulted in corrupt uptodateness vectors.
* libndr: added a GUID_to_ndr_blob() helper functionAndrew Tridgell2009-12-101-6/+14
| | | | This can be used in many places that deal with GUIDs
* librpc: split out a separate GUID_from_ndr_blob() functionAndrew Tridgell2009-12-101-15/+20
| | | | | This will simplify many of the places that deal with NDR formatted GUIDs
* lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett2009-11-121-1/+1
| | | | | | | | | | | | Rather than have a repeat of the bugs we found at the plugfest where hexidecimal strings must be in upper or lower case in particular places, ensure that each caller chooses which case they want. This reverts most of the callers back to upper case, as things were before tridge's patch. The critical call in the extended DN code is of course handled in lower case. Andrew Bartlett
* uuid.c: Remove some dead codeVolker Lendecke2009-11-011-1/+0
|
* Don't trust sscanf not to run off the end of the stringAndrew Bartlett2008-12-201-14/+35
| | | | | | | | The memory allocations here are wasteful, but they do nicely ensure we cannot walk off the end of the DATA_BLOB that might be a string, or might be binary and might not be NULL terminated. Andrew Bartlett
* librpc/ndr: add GUID_hexstring()Stefan Metzmacher2008-11-161-0/+25
| | | | metze
* librpc/ndr: let GUID_from_data_blob() accept a ndr blob or a hex string tooStefan Metzmacher2008-11-161-0/+29
| | | | metze
* Add a new function to parse a DATA_BLOB into a GUIDAndrew Bartlett2008-11-161-7/+21
| | | | | | | 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
* Share uuid implementations.Jelmer Vernooij2008-10-131-0/+227