g10: Fix a regression for generating card key with backup.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 18 Dec 2015 01:02:38 +0000 (10:02 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 18 Dec 2015 01:02:38 +0000 (10:02 +0900)
commitb30c15bf7c5336c4abb1f9dcd974cd77ba6c61a7
tree5aba18cd194bd2b2436113eff817b3cd8e4ff5a1
parente644aa7f5943174e3f7ba9408af71531fd125a0b
g10: Fix a regression for generating card key with backup.

* g10/main.h (receive_seckey_from_agent): Declare.
* g10/keygen.c (card_write_key_to_backup_file): New.
(card_store_key_with_backup): New.
(do_generate_keypair): Create a key on host for encryption key when
backup is requested.  Then, call card_store_key_with_backup.

--

GnuPG-bug-id: 2169
g10/keygen.c
g10/keygen.c.~HEAD~ [new file with mode: 0644]
g10/main.h