summaryrefslogtreecommitdiff
path: root/sexp.c
Commit message (Collapse)AuthorAgeFilesLines
* Updated FSF address. Patch from David Woodhouse.Niels Möller2012-07-071-2/+2
|
* Converted files to utf-8.Niels Möller2012-02-181-1/+1
|
* Deleted FIXME comment.Niels Möller2008-10-241-3/+0
| | | | Rev: nettle/sexp.c:1.3
* Reviewed FIXME-comments.Niels Möller2008-09-151-3/+0
| | | | | | | | | | | | | | | | | | | | | Rev: nettle/aes-decrypt-internal.c:1.2 Rev: nettle/aes-encrypt-internal.c:1.2 Rev: nettle/aes-internal.h:1.2 Rev: nettle/arctwo.h:1.2 Rev: nettle/base16-decode.c:1.2 Rev: nettle/base16-encode.c:1.2 Rev: nettle/base16.h:1.2 Rev: nettle/base64.h:1.2 Rev: nettle/bignum-random.c:1.2 Rev: nettle/bignum.c:1.2 Rev: nettle/bignum.h:1.3 Rev: nettle/rsa-sign.c:1.3 Rev: nettle/rsa-verify.c:1.3 Rev: nettle/rsa.c:1.3 Rev: nettle/rsa.h:1.2 Rev: nettle/sexp-transport-format.c:1.2 Rev: nettle/sexp.c:1.2 Rev: nettle/sexp.h:1.2
* (sexp_iterator_check_types): Use an argument of typeNiels Möller2004-10-051-2/+2
| | | | | | | | "const uint8_t * const *" for the types list. (sexp_iterator_assoc): Likewise, for the keys list. Rev: src/nettle/sexp.c:1.16 Rev: src/nettle/sexp.h:1.17
* (TMP_DECL, TMP_ALLOC): New macros. When alloca is unavailable, theyNiels Möller2004-01-081-3/+4
| | | | | | | | | | | | | | | work by allocating a fix amount of stack and imposing a hard limit on what can be allocated. Updated all users of alloca. Rev: src/nettle/bignum-random.c:1.4 Rev: src/nettle/cbc.c:1.8 Rev: src/nettle/dsa-keygen.c:1.7 Rev: src/nettle/hmac.c:1.6 Rev: src/nettle/pkcs1-rsa-md5.c:1.3 Rev: src/nettle/pkcs1-rsa-sha1.c:1.3 Rev: src/nettle/rsa-decrypt.c:1.5 Rev: src/nettle/rsa-encrypt.c:1.8 Rev: src/nettle/sexp.c:1.15
* * Reordered includes in most or all .c-files. All should now includeNiels Möller2003-05-121-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config.h. Rev: src/nettle/ChangeLog:1.195 Rev: src/nettle/aes-decrypt-table.c:1.4 Rev: src/nettle/aes-decrypt.c:1.5 Rev: src/nettle/aes-encrypt-table.c:1.4 Rev: src/nettle/aes-encrypt.c:1.5 Rev: src/nettle/aes-meta.c:1.3 Rev: src/nettle/aes-set-decrypt-key.c:1.2 Rev: src/nettle/aes-set-encrypt-key.c:1.2 Rev: src/nettle/aes.c:1.12 Rev: src/nettle/aesdata.c:1.2 Rev: src/nettle/arcfour-meta.c:1.2 Rev: src/nettle/arcfour.c:1.3 Rev: src/nettle/base16-decode.c:1.2 Rev: src/nettle/base16-encode.c:1.2 Rev: src/nettle/base16-meta.c:1.3 Rev: src/nettle/base64-decode.c:1.5 Rev: src/nettle/base64-encode.c:1.3 Rev: src/nettle/base64-meta.c:1.4 Rev: src/nettle/bignum-random.c:1.3 Rev: src/nettle/bignum.c:1.7 Rev: src/nettle/blowfish.c:1.4 Rev: src/nettle/buffer-init.c:1.3 Rev: src/nettle/buffer.c:1.8 Rev: src/nettle/cast128-meta.c:1.3 Rev: src/nettle/cast128.c:1.4 Rev: src/nettle/cbc.c:1.6 Rev: src/nettle/des-compat.c:1.10 Rev: src/nettle/des.c:1.7 Rev: src/nettle/des3.c:1.2 Rev: src/nettle/dsa-keygen.c:1.6 Rev: src/nettle/dsa-sign.c:1.7 Rev: src/nettle/dsa-verify.c:1.4 Rev: src/nettle/dsa.c:1.5 Rev: src/nettle/examples/io.c:1.4 Rev: src/nettle/examples/nettle-benchmark.c:1.8 Rev: src/nettle/examples/nettle-openssl.c:1.2 Rev: src/nettle/examples/rsa-keygen.c:1.10 Rev: src/nettle/examples/rsa-sign.c:1.5 Rev: src/nettle/examples/rsa-verify.c:1.4 Rev: src/nettle/hmac-md5.c:1.5 Rev: src/nettle/hmac-sha1.c:1.2 Rev: src/nettle/hmac-sha256.c:1.2 Rev: src/nettle/hmac.c:1.4 Rev: src/nettle/knuth-lfib.c:1.2 Rev: src/nettle/md5-compat.c:1.3 Rev: src/nettle/md5-meta.c:1.2 Rev: src/nettle/md5.c:1.6 Rev: src/nettle/memxor.c:1.2 Rev: src/nettle/nettle-internal.c:1.3 Rev: src/nettle/pgp-encode.c:1.4 Rev: src/nettle/pkcs1-rsa-md5.c:1.2 Rev: src/nettle/pkcs1-rsa-sha1.c:1.2 Rev: src/nettle/pkcs1.c:1.2 Rev: src/nettle/realloc.c:1.3 Rev: src/nettle/rsa-compat.c:1.8 Rev: src/nettle/rsa-decrypt.c:1.4 Rev: src/nettle/rsa-encrypt.c:1.5 Rev: src/nettle/rsa-keygen.c:1.5 Rev: src/nettle/rsa-md5-sign.c:1.2 Rev: src/nettle/rsa-md5-verify.c:1.2 Rev: src/nettle/rsa-sha1-sign.c:1.2 Rev: src/nettle/rsa-sha1-verify.c:1.2 Rev: src/nettle/rsa-sign.c:1.3 Rev: src/nettle/rsa-verify.c:1.2 Rev: src/nettle/rsa.c:1.12 Rev: src/nettle/rsa2openpgp.c:1.2 Rev: src/nettle/rsa2sexp.c:1.7 Rev: src/nettle/serpent-meta.c:1.2 Rev: src/nettle/serpent.c:1.4 Rev: src/nettle/sexp-format.c:1.9 Rev: src/nettle/sexp-transport-format.c:1.2 Rev: src/nettle/sexp-transport.c:1.4 Rev: src/nettle/sexp.c:1.14 Rev: src/nettle/sexp2bignum.c:1.5 Rev: src/nettle/sexp2dsa.c:1.4 Rev: src/nettle/sexp2rsa.c:1.11 Rev: src/nettle/sha1-meta.c:1.2 Rev: src/nettle/sha1.c:1.8 Rev: src/nettle/sha256-meta.c:1.2 Rev: src/nettle/sha256.c:1.3 Rev: src/nettle/tools/input.c:1.2 Rev: src/nettle/tools/misc.c:1.2 Rev: src/nettle/tools/output.c:1.3 Rev: src/nettle/tools/parse.c:1.2 Rev: src/nettle/tools/sexp-conv.c:1.14 Rev: src/nettle/twofish-meta.c:1.2 Rev: src/nettle/twofish.c:1.6 Rev: src/nettle/yarrow256.c:1.17 Rev: src/nettle/yarrow_key_event.c:1.4
* (sexp_iterator_exit_lists): New function, #if:ed out forNiels Möller2002-11-211-0/+16
| | | | | | | now. Rev: src/nettle/sexp.c:1.13 Rev: src/nettle/sexp.h:1.10
* (sexp_iterator_get_uint32): New function.Niels Möller2002-11-151-0/+44
| | | | | Rev: src/nettle/sexp.c:1.12 Rev: src/nettle/sexp.h:1.9
* * sexp.h (struct sexp_iterator): New field start.Niels Möller2002-11-101-0/+15
| | | | | | | | * sexp.c (sexp_iterator_subexpr): New function. (sexp_iterator_parse): Initialize ITERATOR->start. Rev: src/nettle/sexp.c:1.11 Rev: src/nettle/sexp.h:1.8
* (sexp_iterator_next): Abort if iterator type is boogus.Niels Möller2002-10-211-0/+2
| | | | Rev: src/nettle/sexp.c:1.10
* (sexp_iterator_parse): New function, similar to the oldNiels Möller2002-10-071-33/+48
| | | | | | | | | | | | sexp_iterator_next, but independent of the previous value of the iterator->type. (sexp_iterator_first): Use sexp_iterator_parse. (sexp_iterator_next): Likewise. (sexp_iterator_enter_list): Use sexp_iterator_parse. SEXP_START not needed anymore. (sexp_iterator_exit_list): Likewise. Rev: src/nettle/sexp.c:1.9
* * sexp.c (sexp_iterator_assoc): Advance the iterator to theNiels Möller2002-10-061-1/+5
| | | | | | element after a matching tag, before recording it. Rev: src/nettle/sexp.c:1.8
* * sexp.c (sexp_iterator_next): Updated to new sexp_iterator_exit_list.Niels Möller2002-10-061-18/+14
| | | | | | | | | | | (sexp_iterator_exit_list): Return with iterator pointing to the element after the list. (sexp_iterator_check_type): Call sexp_iterator_next before returning. (sexp_iterator_check_types): Likewise. (sexp_iterator_assoc): Rearranged calls of sexp_iterator_next. Rev: src/nettle/sexp.c:1.7
* * sexp.c (sexp_iterator_enter_list): Call sexp_iterator_next toNiels Möller2002-10-061-8/+5
| | | | | | | get to the first element of the list. Updated callers. Rev: src/nettle/sexp.c:1.6 Rev: src/nettle/testsuite/sexp-test.c:1.6
* (sexp_iterator_init): Made this function static.Niels Möller2002-10-061-1/+11
| | | | | | | (sexp_iterator_first): New, friendlier, initialization function. Rev: src/nettle/sexp.c:1.5 Rev: src/nettle/sexp.h:1.4
* (sexp_iterator_assoc): Don't enter the list, associateNiels Möller2002-09-291-8/+41
| | | | | | | | | | | keys within the current list. Still exit the list when done. (sexp_iterator_assoc): Represent keys as plain NUL-terminated strings. (sexp_iterator_check_type, sexp_iterator_check_types): New functions. Rev: src/nettle/sexp.c:1.4 Rev: src/nettle/sexp.h:1.3
* (sexp_iterator_assoc): Return 0 for missing or duplicate keys.Niels Möller2002-09-281-2/+19
| | | | Rev: src/nettle/sexp.c:1.3
* * sexp.c (sexp_iterator_simple): Bugfixes. Check earlier thatNiels Möller2002-09-281-25/+40
| | | | | | | | | | | length doesn't grow too large. (sexp_iterator_next): Skip the current list only if type is SEXP_LIST. Handle ')'. (sexp_iterator_enter_list): Set type to SEXP_START. (sexp_iterator_exit_list): Likewise. Don't skip the ')' here. (sexp_iterator_assoc): Bug fix. Rev: src/nettle/sexp.c:1.2
* New files, implementing an sexp-parser.Niels Möller2002-09-281-0/+228
Rev: src/nettle/sexp.c:1.1 Rev: src/nettle/sexp.h:1.1