mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: New function cmp_canon_sexp.
* common/sexputil.c (cmp_canon_sexp): New. (cmp_canon_sexp_def_tcmp): New. * common/t-sexputil.c (test_cmp_canon_sexp): Add a simple test. -- To be used to fix GnuPG-bug-id: 5061 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
9a94db1f66
commit
b6ba6a79ce
4 changed files with 200 additions and 2 deletions
|
@ -242,8 +242,8 @@ parse_ber_header (unsigned char const **buffer, size_t *size,
|
|||
returned as a pointer into the original buffer at TOK and TOKLEN.
|
||||
If a parentheses is the next token, TOK will be set to NULL.
|
||||
TOKLEN is checked to be within the bounds. On error an error code
|
||||
is returned and no pointer is not guaranteed to point to
|
||||
a meaningful value. DEPTH should be initialized to 0 and will
|
||||
is returned and pointers are not guaranteed to point to
|
||||
meaningful values. DEPTH should be initialized to 0 and will
|
||||
reflect on return the actual depth of the tree. To detect the end
|
||||
of the S-expression it is advisable to check DEPTH after a
|
||||
successful return.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue