summaryrefslogtreecommitdiff
path: root/source4/lib/registry/util.c
AgeCommit message (Collapse)AuthorFilesLines
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 Tridgell1-2/+2
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
2010-10-15s4:lib/registry/util.c - cosmetic - fix indentation, trailing whitespacesMatthias Dieter Wallnöfer1-10/+11
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Oct 15 07:27:07 UTC 2010 on sn-devel-104
2010-10-15s4:lib/registry/util.c - strtoll call - better say explicitly that data is ↵Matthias Dieter Wallnöfer1-1/+1
in hex format Template is commit deebc934edb9a0a70e7615b1161d7a60fcb1d78f from Wilco.
2010-10-03Fix issues addressed by Jelmer:Wilco Baan Hofman1-0/+5
* Add a comment about why the reg_strhex_to_data_blob was added * Fix int which should've been a boolean Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03Fix hex():00,00,00 bugs and strtol dword bugs, these values are explicitly hex.Wilco Baan Hofman1-7/+37
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03Fix registry parsing of strings to also support the windows method.Wilco Baan Hofman1-1/+33
Specifically: dword:00000000, hex:00,00,00,00, hex(0..B):00,00,00,00 Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-09-15s4: fixed some printf format errorsAndrew Tridgell1-1/+1
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-21/+9
2010-04-27s4: use shared registry functions.Günther Deschner1-47/+1
Guenther
2010-03-29s4:registry/util.c - remove those "talloc_free"sMatthias Dieter Wallnöfer1-3/+0
They're not really necessary.
2010-03-29s4:registry/util.c - fix indentationMatthias Dieter Wallnöfer1-2/+2
2010-03-29registry: Fix compilation.Jelmer Vernooij1-7/+3
2010-03-29Revert reordering from commit 51bedf939568717424edd7732e1e315faa333849Wilco Baan Hofman1-3/+3
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29Revert "s4:registry - util.c - add harder checks for inputs on ↵Wilco Baan Hofman1-15/+11
"reg_val_data_string"" This reverts commit eb8c8a0ecaa9bfd29f090db21fccdad7751767ae. Conflicts: source4/lib/registry/util.c Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29Revert "s4:registry - util.c - move the "REG_NONE" case in the conversion ↵Wilco Baan Hofman1-6/+6
functions on top of the switch" This reverts commit 4e6c0e1f6f37a7e04d10dbf7abbf626f52232aaf. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29Revert "s4:registry - util.c - treat unsupported and binary values as the ↵Wilco Baan Hofman1-6/+18
same in the conversion functions" This reverts commit cc3eec1681bb6d614e688f51e48bd76f6d513e67. Conflicts: source4/lib/registry/util.c Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29Revert "s4:registry - adaptions for "add memory contexts for delete ↵Wilco Baan Hofman1-2/+5
value/key functions"" This reverts commit 43170dafbcbe7464bce9b4c6d76532d7d0bf5b9a. Conflicts: source4/lib/registry/dir.c source4/lib/registry/util.c Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29Revert "s4:registry - "util" - make "reg_key_add_abs" consistent with ↵Wilco Baan Hofman1-6/+9
"reg_key_del_abs"" This reverts commit 9d8592978e28c492d971a3b5a4c0133febc149ea. Conflicts: source4/lib/registry/util.c Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29Remove incorrect const, something that was correct in commit ↵Wilco Baan Hofman1-2/+2
9c3e6249fd984b823a77cab0514601d2a487920a Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-29Revert "s4:registry - "util" - remove "const" from "reg_abs_path""Wilco Baan Hofman1-3/+3
This reverts commit 9c3e6249fd984b823a77cab0514601d2a487920a. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-03-22s4:registry - "reg_key_del/add_abs": call "talloc_free" only on valid objectsMatthias Dieter Wallnöfer1-6/+6
2010-03-22s4:registry - "util.c" - initialise "result" in "reg_key_add_abs"Matthias Dieter Wallnöfer1-0/+2
2010-03-22s4:registry - "util" - remove "const" from "reg_abs_path"Matthias Dieter Wallnöfer1-3/+3
Here it's not really needed
2010-03-22s4:registry - "util" - add also a memory context argument for "reg_key_del_abs"Matthias Dieter Wallnöfer1-4/+2
2010-03-22s4:registry - "util" - make "reg_key_add_abs" consistent with "reg_key_del_abs"Matthias Dieter Wallnöfer1-6/+3
2010-03-22s4:registry - "util" - fix up memory allocated dataMatthias Dieter Wallnöfer1-1/+10
2010-03-22s4:registry - adaptions for "add memory contexts for delete value/key functions"Matthias Dieter Wallnöfer1-1/+1
2010-03-22s4:registry - "util.c" - "reg_string_to_val" - consider always the return valuesMatthias Dieter Wallnöfer1-7/+9
In some cases we didn't consider them.
2010-03-21s4:registry - handle type "DWORD_BIG_ENDIAN" as type "DWORD"Matthias Dieter Wallnöfer1-7/+2
Further tests show that (at least per default) there aren't any differences between them.
2010-03-16s4:registry - use a macro for reverse byte orderMatthias Dieter Wallnöfer1-5/+2
2010-03-16s4:registry - introduce the "REG_DWORD_BIG_ENDIAN" datatypeMatthias Dieter Wallnöfer1-3/+13
It's like the normal REG_DWORD type but the byte order swapped
2010-03-15s4:registry - util.c - treat unsupported and binary values as the same in ↵Matthias Dieter Wallnöfer1-17/+5
the conversion functions We don't need to provide an extra representation for all available registry types. But if we treat all unsupported types as binary we also get our tools (regtree, regshell, regdiff...) working with them in a basic manner.
2010-03-15s4:registry - util.c - move the "REG_NONE" case in the conversion functions ↵Matthias Dieter Wallnöfer1-6/+6
on top of the switch (As in the "reg_value_types" structure)
2010-03-15s4:registry - fix up the output of hexadecimal valuesMatthias Dieter Wallnöfer1-12/+4
Use a fixed-length representation to avoid platform-specific issues.
2010-03-15s4:registry - add support for REG_QWORD valuesMatthias Dieter Wallnöfer1-1/+17
Basically the same as REG_DWORD but these are eight byte long.
2010-03-14s4:registry - util.c - add harder checks for inputs on "reg_val_data_string"Matthias Dieter Wallnöfer1-12/+16
("NULL" result is error on most data types).
2010-03-11s4-registry: add all winreg types to reg_value_types table.Günther Deschner1-3/+11
Guenther
2010-03-06s4:libregistry - change counters to be "unsigned"Matthias Dieter Wallnöfer1-3/+3
Also the s4 registry library has to have "unsigned" counters like the Windows one.
2010-02-07s4-registry: fixed byte order assumptionsAndrew Tridgell1-3/+4
the registry tests were broken on big-endian systems
2009-12-30s4:lib/registry/util.c - Reintroduce "FIXME"sMatthias Dieter Wallnöfer1-0/+2
Jelmer suggested to put them in again.
2009-11-29lib/registry/util.c - Reorder the registry datatypes of the conversion functionsMatthias Dieter Wallnöfer1-9/+12
This is absolutely cosmetic and makes the code easier to comprehend.
2009-11-29Revert "s4:registry/util - Don't include the trailing '\0' in the internal ↵Matthias Dieter Wallnöfer1-6/+2
data format but add it on the back-conversion to a string" This reverts commit 7d400715e9af2056690c03a1a2f45c7f343fa313. "convert_string_talloc_convenience" does always add the NULL termination. Didn't know that. Thanks Jelmer for pointing out!
2009-11-27s4:registry/util - Don't include the trailing '\0' in the internal data ↵Matthias Dieter Wallnöfer1-14/+27
format but add it on the back-conversion to a string As far as I know the registry library saves all data (including) strings without the null termination. So do it also here in a similar way.
2009-11-15Fix writing corrupt REG_SZ to the registry.Wilco Baan Hofman1-1/+2
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
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-03-01s4: Use same function signature for convert_* as s3.Jelmer Vernooij1-3/+3
2009-03-01Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij1-2/+2
consistency with Samba 3.
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-24Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij1-2/+2
make them wrappers around convert_string{,talloc}_convenience().