diff options
| author | Werner Koch <[email protected]> | 2020-09-11 13:23:22 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2020-09-11 13:23:22 +0000 |
| commit | b6ba6a79ce9336f1b53f16f3d1190dd009fb166e (patch) | |
| tree | 00161d710805f2b16ed65184926022c86d868240 /common/tlv.c | |
| parent | keyboxd: Implement lookup by short and long keyid. (diff) | |
| download | gnupg-b6ba6a79ce9336f1b53f16f3d1190dd009fb166e.tar.gz gnupg-b6ba6a79ce9336f1b53f16f3d1190dd009fb166e.zip | |
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 <[email protected]>
Diffstat (limited to 'common/tlv.c')
| -rw-r--r-- | common/tlv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/tlv.c b/common/tlv.c index 947464bf7..abef83a37 100644 --- a/common/tlv.c +++ b/common/tlv.c @@ -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. |
