sexp: Add function gcry_sexp_extract_param.
authorWerner Koch <wk@gnupg.org>
Wed, 16 Oct 2013 14:20:56 +0000 (16:20 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 16 Oct 2013 14:20:56 +0000 (16:20 +0200)
commita329b6abf00c990faf1986f9fbad7b4d71c13bcb
tree52b1f995cbc863404fb8a01005f3d17c29706655
parent45aa6131e93fac89d46733b3436d960f35fb99b2
sexp: Add function gcry_sexp_extract_param.

* src/gcrypt.h.in (_GCRY_GCC_ATTR_SENTINEL): New.
(gcry_sexp_extract_param): New.
* src/visibility.c (gcry_sexp_extract_param): New.
* src/visibility.h (gcry_sexp_extract_param): Add hack to detect
internal use.
* cipher/pubkey-util.c (_gcry_pk_util_extract_mpis): Move and split
into ...
* src/sexp.c (_gcry_sexp_vextract_param)
(_gcry_sexp_extract_param): this.  Change all callers.  Add support for buffer
descriptors and a path option/

* tests/tsexp.c (die, hex2buffer, hex2mpi, hex2mpiopa): New.
(cmp_mpihex, cmp_bufhex): New.
(check_extract_param): New.

Signed-off-by: Werner Koch <wk@gnupg.org>
18 files changed:
NEWS
cipher/dsa.c
cipher/ecc-curves.c
cipher/ecc-misc.c
cipher/ecc.c
cipher/elgamal.c
cipher/pubkey-internal.h
cipher/pubkey-util.c
cipher/rsa.c
doc/gcrypt.texi
src/g10lib.h
src/gcrypt.h.in
src/libgcrypt.def
src/libgcrypt.vers
src/sexp.c
src/visibility.c
src/visibility.h
tests/tsexp.c