diff options
author | Werner Koch <[email protected]> | 2020-08-19 11:43:16 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-08-19 11:43:16 +0000 |
commit | 4031c42bfd0135874a5b362df175de93a19f1b51 (patch) | |
tree | a339aa48a270d358f7264b5bb36e64a326d427f3 /g10/keygen.c | |
parent | gpg: Fix condition of string_to_aead_algo. (diff) | |
download | gnupg-4031c42bfd0135874a5b362df175de93a19f1b51.tar.gz gnupg-4031c42bfd0135874a5b362df175de93a19f1b51.zip |
gpg,gpgsm: Record the creation time of a private key.
* sm/call-agent.c (gpgsm_agent_genkey): Pass --timestamp option.
(gpgsm_agent_import_key): Ditto.
* g10/call-agent.c (agent_genkey): Add arg timestamp and pass it on.
(agent_import_key): Ditto.
* g10/import.c (transfer_secret_keys): Pass the creation date to the
agent.
* g10/keygen.c (common_gen): Ditto.
--
Having the creation time in the private key file makes it a lot easier
to re-create an OpenPGP public keyblock in case it was accidentally
lost.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/keygen.c')
-rw-r--r-- | g10/keygen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keygen.c b/g10/keygen.c index 776896228..cf34d8f99 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -1523,7 +1523,7 @@ common_gen (const char *keyparms, int algo, const char *algoelem, err = agent_genkey (NULL, cache_nonce_addr, passwd_nonce_addr, keyparms, !!(keygen_flags & KEYGEN_FLAG_NO_PROTECTION), - passphrase, + passphrase, timestamp, &s_key); if (err) { |