gpg: Allow creating keys using an existing ECC key.
authorWerner Koch <wk@gnupg.org>
Wed, 1 Mar 2017 12:36:01 +0000 (13:36 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 1 Mar 2017 12:36:01 +0000 (13:36 +0100)
commit2bbdeb8ee87a6c7ec211be16391a11b7c6030bed
treeb00d826be8111cd5ec1786bd88debf29b8867db6
parent19f8d5319120a18efada26f793274b3eaaee2b45
gpg: Allow creating keys using an existing ECC key.

* common/sexputil.c (get_pk_algo_from_canon_sexp): Remove arg R_ALGO.
Change to return the algo id.  Reimplement using get_pk_algo_from_key.
* g10/keygen.c (check_keygrip): Adjust for change.
* sm/certreqgen-ui.c (check_keygrip): Ditto.
--

GnuPG-bug-id: 2976
Signed-off-by: Werner Koch <wk@gnupg.org>
common/sexputil.c
common/util.h
g10/keygen.c
sm/certreqgen-ui.c