diff options
author | Werner Koch <[email protected]> | 2002-02-01 11:39:06 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-02-01 11:39:06 +0000 |
commit | 30f1b027c012f8022c67185832fa1aada26c396a (patch) | |
tree | c2a8b3c3e993dbb47643ea9c220277a23b857bea /agent/agent.h | |
parent | Added a few more error codes (diff) | |
download | gnupg-30f1b027c012f8022c67185832fa1aada26c396a.tar.gz gnupg-30f1b027c012f8022c67185832fa1aada26c396a.zip |
* cache.c: Add a few debug outputs.
* protect.c (agent_private_key_type): New.
* agent.h: Add PRIVATE_KEY_ enums.
* findkey.c (agent_key_from_file): Use it to decide whether we
have to unprotect a key.
(unprotect): Cache the passphrase.
* findkey.c (agent_key_from_file,agent_key_available): The key
files do now require a ".key" suffix to make a script's life
easier.
* genkey.c (store_key): Ditto.
Diffstat (limited to '')
-rw-r--r-- | agent/agent.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h index 955dd1ce2..0b88d9a2c 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -83,6 +83,13 @@ struct pin_entry_info_s { }; +enum { + PRIVATE_KEY_UNKNOWN = 0, + PRIVATE_KEY_CLEAR = 1, + PRIVATE_KEY_PROTECTED = 2, + PRIVATE_KEY_SHADOWED = 3 +}; + /*-- gpg-agent.c --*/ void agent_exit (int rc); /* also implemented in other tools */ @@ -125,6 +132,7 @@ int agent_protect (const unsigned char *plainkey, const char *passphrase, unsigned char **result, size_t *resultlen); int agent_unprotect (const unsigned char *protectedkey, const char *passphrase, unsigned char **result, size_t *resultlen); +int agent_private_key_type (const unsigned char *privatekey); /*-- trustlist.c --*/ |