diff options
author | NIIBE Yutaka <[email protected]> | 2022-03-25 05:10:46 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-03-25 05:10:46 +0000 |
commit | c795be79c14fac01b984bdc2e2041d2141f27612 (patch) | |
tree | f423a9809af54d41ecef4690e7e2aa4ca8de41c5 /agent/pksign.c | |
parent | dirmngr: Suppress error message on trial reading as PEM format. (diff) | |
download | gnupg-c795be79c14fac01b984bdc2e2041d2141f27612.tar.gz gnupg-c795be79c14fac01b984bdc2e2041d2141f27612.zip |
agent: Use "Created:" field for creation time.
* agent/agent.h (agent_key_from_file): Change the declaration.
* agent/findkey.c (agent_key_from_file): Return timestamp.
* agent/pkdecrypt.c (agent_pkdecrypt): Follow the change.
* agent/pksign.c (agent_pkdecrypt): Likewise.
* agent/command.c (cmd_passwd, cmd_export_key): Likewise.
(cmd_keytocard): Use timestamp in private key file in "Created:".
--
GnuPG-bug-id: 5538
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/pksign.c')
-rw-r--r-- | agent/pksign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/pksign.c b/agent/pksign.c index b877addb0..170dc9644 100644 --- a/agent/pksign.c +++ b/agent/pksign.c @@ -316,7 +316,7 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce, err = agent_key_from_file (ctrl, cache_nonce, desc_text, ctrl->keygrip, &shadow_info, cache_mode, lookup_ttl, - &s_skey, NULL); + &s_skey, NULL, NULL); if (gpg_err_code (err) == GPG_ERR_NO_SECKEY) no_shadow_info = 1; else if (err) |