summaryrefslogtreecommitdiff
path: root/librpc/ndr/uuid.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-28librpc: Use switch in GUID_from_data_blob().Andreas Schneider1-7/+16
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-2/+2
2009-12-21librpc: fixed the GUID_compare() functionAndrew Tridgell1-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.
2009-12-10libndr: added a GUID_to_ndr_blob() helper functionAndrew Tridgell1-6/+14
This can be used in many places that deal with GUIDs
2009-12-10librpc: split out a separate GUID_from_ndr_blob() functionAndrew Tridgell1-15/+20
This will simplify many of the places that deal with NDR formatted GUIDs
2009-11-12lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett1-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
2009-11-01uuid.c: Remove some dead codeVolker Lendecke1-1/+0
2008-12-20Don't trust sscanf not to run off the end of the stringAndrew Bartlett1-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
2008-11-16librpc/ndr: add GUID_hexstring()Stefan Metzmacher1-0/+25
metze
2008-11-16librpc/ndr: let GUID_from_data_blob() accept a ndr blob or a hex string tooStefan Metzmacher1-0/+29
metze
2008-11-16Add a new function to parse a DATA_BLOB into a GUIDAndrew Bartlett1-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
2008-10-13Share uuid implementations.Jelmer Vernooij1-0/+227