From 0da923a1240ac78d60c92cdd8488c4e405c3243b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 17 Aug 2020 14:21:00 +0200 Subject: 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 new key 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. Signed-off-by: Werner Koch --- agent/cvt-openpgp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'agent/cvt-openpgp.c') diff --git a/agent/cvt-openpgp.c b/agent/cvt-openpgp.c index 5d60b66f3..c43809f90 100644 --- a/agent/cvt-openpgp.c +++ b/agent/cvt-openpgp.c @@ -1114,7 +1114,7 @@ convert_from_openpgp_native (ctrl_t ctrl, &protectedkey, &protectedkeylen, ctrl->s2k_count, -1)) agent_write_private_key (grip, protectedkey, protectedkeylen, 1, - NULL, NULL); + NULL, NULL, 0); xfree (protectedkey); } else @@ -1123,7 +1123,7 @@ convert_from_openpgp_native (ctrl_t ctrl, agent_write_private_key (grip, *r_key, gcry_sexp_canon_len (*r_key, 0, NULL,NULL), - 1, NULL, NULL); + 1, NULL, NULL, 0); } } -- cgit v1.2.3