Home GnuPG
Diffusion GnuPG 051830d7b486

agent: Allow to pass a timestamp to genkey and import.

Description

agent: Allow to pass a timestamp to genkey and import.

* agent/command.c (cmd_genkey): Add option --timestamp.
(cmd_import_key): Ditto.
* agent/genkey.c (store_key): Add arg timestamp and change callers.
(agent_genkey): Ditto.
* agent/findkey.c (write_extended_private_key): Add args timestamp and
newkey to write a Created line.
(agent_write_private_key): Add arg timestamp.
(agent_write_shadow_key): Ditto.
* agent/protect-tool.c (agent_write_private_key): Ditto as dummy arg.

Backported-from-master: 0da923a1240ac78d60c92cdd8488c4e405c3243b

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Aug 17 2020, 2:21 PM
Parents
rG5b927b7b27bd: agent: Default to extended key format.
Branches
Unknown
Tags
Unknown