scd: Add genkey command to app-piv (rsa-only)
authorWerner Koch <wk@gnupg.org>
Wed, 6 Feb 2019 19:47:07 +0000 (20:47 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Feb 2019 19:47:07 +0000 (20:47 +0100)
commitb5b1f721582df9d0379cb68b4faeceed32a56e49
tree16867642b0b4b0322b0c61268aea7783fd561735
parent9a9cb0257aebb1480b999fdf9d90904083eb8e3c
scd: Add genkey command to app-piv (rsa-only)

* scd/app-piv.c (struct genkey_result_s): new.
(struct app_local_s): add member genkey_results.
(do_deinit): Free that one.
(flush_cached_data): Extend to delete all items.
(keyref_from_dobj): New.
(do_readkey): New.
(do_auth): Use keyref_from_dobj.
(does_key_exist): New.
(genkey_parse_rsa): New.
(do_genkey): New.
--

We need to extend the GENKEY in command.c to support other algos.

Signed-off-by: Werner Koch <wk@gnupg.org>
scd/app-piv.c