aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cardglue.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-10-02 10:20:12 +0000
committerWerner Koch <[email protected]>2003-10-02 10:20:12 +0000
commit99cabff03f3d27f7ac2a12b837b17a538be1fe1f (patch)
tree0a15a78faf6e50798ededc50e498bcbce28ae2bf /g10/cardglue.h
parent* g10.c (main): Add --no-groups to zero --group list. (diff)
downloadgnupg-99cabff03f3d27f7ac2a12b837b17a538be1fe1f.tar.gz
gnupg-99cabff03f3d27f7ac2a12b837b17a538be1fe1f.zip
* cardglue.c (learn_status_cb): Release values before assignment
so that it can be used by getattr to update the structure. (agent_scd_getattr): New. * keylist.c (print_pubkey_info): Add FP arg for optional printing to a stream. Changed all callers.
Diffstat (limited to '')
-rw-r--r--g10/cardglue.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/cardglue.h b/g10/cardglue.h
index 076849866..42a22b542 100644
--- a/g10/cardglue.h
+++ b/g10/cardglue.h
@@ -84,7 +84,7 @@ typedef struct ctrl_ctx_s *CTRL;
#define GPG_ERR_USE_CONDITIONS G10ERR_GENERAL
#define GPG_ERR_WRONG_CARD G10ERR_GENERAL
#define GPG_ERR_WRONG_SECKEY G10ERR_WRONG_SECKEY
-
+#define GPG_ERR_PIN_NOT_SYNCED G10ERR_GENERAL
typedef int gpg_error_t;
typedef int gpg_err_code_t;
@@ -130,6 +130,9 @@ int agent_learn (struct agent_card_info_s *info);
is available. Return 0 for yes or an error code. */
int agent_havekey (const char *hexkeygrip);
+/* Return card info. */
+int agent_scd_getattr (const char *name, struct agent_card_info_s *info);
+
/* Send a SETATTR command to the SCdaemon. */
int agent_scd_setattr (const char *name,
const unsigned char *value, size_t valuelen);