gpg: Allow direct key generation from card with --full-gen-key.
authorWerner Koch <wk@gnupg.org>
Tue, 2 Apr 2019 16:57:09 +0000 (18:57 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 2 Apr 2019 16:57:09 +0000 (18:57 +0200)
commita480182f9d7ec316648cb64248f7a0cc8f681bc3
tree1203776b7eca97c35be39826e145bfca46741059
parentf952226043824cbbeb8517126b5266926121c4e8
gpg: Allow direct key generation from card with --full-gen-key.

* g10/call-agent.c (agent_scd_readkey): New.
* g10/keygen.c (ask_key_flags): Factor code out to ..
(ask_key_flags_with_mask): new.
(ask_algo): New mode 14.
--

Note that this new menu 14 is always displayed.  The usage flags can
be changed only in --expert mode, though.  Creating and using signing
keys works but decryption does not yet work; we will need to tweak a
couple of other places for that.  Tested with a Yubikey's PIV app.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/DETAILS
doc/gpg-card.texi
g10/call-agent.c
g10/call-agent.h
g10/keygen.c