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/agent.h | |
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/agent.h')
-rw-r--r-- | agent/agent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h index 6004f2d42..4ee8e40c5 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -461,7 +461,7 @@ gpg_error_t agent_key_from_file (ctrl_t ctrl, cache_mode_t cache_mode, lookup_ttl_t lookup_ttl, gcry_sexp_t *result, - char **r_passphrase); + char **r_passphrase, time_t *r_timestamp); gpg_error_t agent_raw_key_from_file (ctrl_t ctrl, const unsigned char *grip, gcry_sexp_t *result); gpg_error_t agent_public_key_from_file (ctrl_t ctrl, |