Note: I have not fully tested the new key creation due to a pc/sc
authorWerner Koch <wk@gnupg.org>
Thu, 23 Sep 2004 19:34:45 +0000 (19:34 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 23 Sep 2004 19:34:45 +0000 (19:34 +0000)
commitf36154535e344ee4771f9d1c7676961fa330ed96
tree92f297e3c222b40d9afd7d10b154d61b19b6840b
parent42c18de83a8eab8d4da3e4d4193a8750cf8ba6be
Note: I have not fully tested the new key creation due to a pc/sc
error.  However the backupfile has been created successfully.

* rsa.c (rsa_generate): Return the dummy list of factors only if
the caller asked for it.

* card_util.c (generate_card_keys): ask whether backup should be
created.
(card_store_subkey): Factored some code out to ..
* keygen.c (save_unprotected_key_to_card): .. new function.
(gen_card_key_with_backup): New.
(generate_raw_key): New.
(generate_keypair): New arg BACKUP_ENCRYPTION_DIR.  Changed all
callers.
(do_generate_keypair): Divert to gen_card_key_with_backup when
desired.
cipher/ChangeLog
cipher/rsa.c
g10/ChangeLog
g10/app-openpgp.c
g10/card-util.c
g10/g10.c
g10/keygen.c
g10/main.h