summaryrefslogtreecommitdiffstats
path: root/source3/lib/srprs.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:lib: fix/simplify srprs_hex()Stefan Metzmacher2014-11-251-10/+6
| | | | | | | | | | | | | | | | | | | | | There're a few problems with this function. - it pretends to support values up to UINT64_MAX in it only returns 'unsigned' which support only values up to UINT32_MAX. Currently we only have callers with len=2 and len=8, so it's not a triggered bug. We just allow (len >= 1 && len <= 8) now. - The compiler is not able to inspect the format string to sscanf(). We copy up to 8 bytes into a stack buffer and always pass "%8x" to sscanf. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:lib: use includes.h with cbuf and srprsGregor Beck2012-09-071-4/+1
| | | | | | hopefully fixes build on hpux Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: add function srprs_quoted to parse strings written with cbuf_print_quotedGregor Beck2011-04-041-0/+40
|
* s3-lib: add srprs, primitives to build simple recursive parsersGregor Beck2010-09-221-0/+185
Signed-off-by: Michael Adam <obnox@samba.org>