diff options
author | Werner Koch <wk@gnupg.org> | 2002-02-28 12:07:59 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-02-28 12:07:59 +0100 |
commit | 56341c289cabffb7f468f7a3ee706626a9106a96 (patch) | |
tree | 41fdd684c4cfdd7a164f22ae3fc56ba061d19a6c /agent/agent.h | |
parent | * assuan-client.c (assuan_transact): Add 2 more arguments to (diff) | |
download | gnupg2-56341c289cabffb7f468f7a3ee706626a9106a96.tar.xz gnupg2-56341c289cabffb7f468f7a3ee706626a9106a96.zip |
Changes needed to support smartcards. Well, only _support_. There is
no real code yet.
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h index a4cf8629d..875e69bf0 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -36,6 +36,7 @@ struct { int batch; /* batch mode */ const char *homedir; /* configuration directory name */ const char *pinentry_program; + const char *scdaemon_program; int no_grab; /* don't let the pinentry grab the keyboard */ unsigned long def_cache_ttl; @@ -101,7 +102,8 @@ const char *trans (const char *text); void start_command_handler (int); /*-- findkey.c --*/ -GCRY_SEXP agent_key_from_file (const unsigned char *grip); +GCRY_SEXP agent_key_from_file (const unsigned char *grip, + unsigned char **shadow_info); int agent_key_available (const unsigned char *grip); /*-- query.c --*/ @@ -135,6 +137,11 @@ int agent_protect (const unsigned char *plainkey, const char *passphrase, 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); +int agent_shadow_key (const unsigned char *pubkey, + const unsigned char *shadow_info, + unsigned char **result); +int agent_get_shadow_info (const unsigned char *shadowkey, + unsigned char const **shadow_info); /*-- trustlist.c --*/ @@ -143,4 +150,14 @@ int agent_listtrusted (void *assuan_context); int agent_marktrusted (const char *name, const char *fpr, int flag); +/*-- divert-scd.c --*/ +int divert_pksign (GCRY_SEXP *s_sig, GCRY_SEXP s_hash, + const char *shadow_info); +int divert_pkdecrypt (GCRY_SEXP *s_plain, GCRY_SEXP s_cipher, + const char *shadow_info); + +/*-- call-scd.c --*/ +int agent_learn_card (void); + + #endif /*AGENT_H*/ |