Home GnuPG
Diffusion GnuPG 4031c42bfd01

gpg,gpgsm: Record the creation time of a private key.

Description

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 <wk@gnupg.org>

Details

Provenance
wernerAuthored on Aug 19 2020, 1:43 PM
Parents
rG1d66b518ca83: gpg: Fix condition of string_to_aead_algo.
Branches
Unknown
Tags
Unknown