pubkey: Move sexp parsing of remaining fucntions to the modules.
authorWerner Koch <wk@gnupg.org>
Fri, 11 Oct 2013 20:37:41 +0000 (22:37 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 11 Oct 2013 20:37:58 +0000 (22:37 +0200)
commita951c061523e1c13f1358c9760fc3a9d787ab2d4
tree5ea15233dbeffa041c129920c6ab5fa93b40b75e
parent07950c865a901afc48acb46f0695040cadfd5068
pubkey: Move sexp parsing of remaining fucntions to the modules.

* cipher/pubkey.c (release_mpi_array): Remove.
(pubkey_check_secret_key): Remove.
(sexp_elements_extract): Remove.
(sexp_elements_extract_ecc): Remove.
(sexp_to_key): Remove.
(get_hash_algo): Remove.
(gcry_pk_testkey): Revamp.
(gcry_pk_get_curve): Revamp.
* cipher/rsa.c (rsa_check_secret_key): Revamp.
* cipher/elgamal.c (elg_check_secret_key): Revamp.
* cipher/dsa.c (dsa_check_secret_key): Revamp.
* cipher/ecc.c (ecc_check_secret_key): Revamp.
* cipher/ecc-curves.c: Include cipher.h and pubkey-internal.h
(_gcry_ecc_get_curve): Revamp.

* cipher/pubkey-util.c (_gcry_pk_util_extract_mpis): Set passed and
used parameters on error to NULL.
--

That is the final part of the changes modulo introduced regressions.
pubkey.c is now actually maintainable code.

Signed-off-by: Werner Koch <wk@gnupg.org>
cipher/dsa.c
cipher/ecc-common.h
cipher/ecc-curves.c
cipher/ecc.c
cipher/elgamal.c
cipher/pubkey-util.c
cipher/pubkey.c
cipher/rsa.c
src/cipher-proto.h