diff options
author | Werner Koch <wk@gnupg.org> | 2011-03-01 14:22:41 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-03-01 14:22:41 +0100 |
commit | dfdda3b344e525f4fdb5e2c07ac63b52e501941f (patch) | |
tree | 763b777bdd2f8653889118a3203f6318ae3d15b8 /common/tlv.h | |
parent | Update gpg-error.m4 and libgcrypt.m4 (diff) | |
download | gnupg2-dfdda3b344e525f4fdb5e2c07ac63b52e501941f.tar.xz gnupg2-dfdda3b344e525f4fdb5e2c07ac63b52e501941f.zip |
Add new functions to convert iso time strings.
Diffstat (limited to '')
-rw-r--r-- | common/tlv.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/tlv.h b/common/tlv.h index c7fafd547..fd57e1e90 100644 --- a/common/tlv.h +++ b/common/tlv.h @@ -90,15 +90,15 @@ gpg_error_t _parse_ber_header (unsigned char const **buffer, size_t *size, GPG_ERR_SOURCE_DEFAULT) -/* Return the next token of an canconical encoded S-expression. BUF +/* Return the next token of an canonical encoded S-expression. BUF is the pointer to the S-expression and BUFLEN is a pointer to the length of this S-expression (used to validate the syntax). Both are updated to reflect the new position. The token itself is - returned as a pointer into the orginal buffer at TOK and TOKLEN. + 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 a error code - is returned and all pointers should are not guaranteed to point to - a meanigful value. DEPTH should be initialized to 0 and will + 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 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. */ |