aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-common.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-09-30 17:35:05 +0000
committerWerner Koch <[email protected]>2003-09-30 17:35:05 +0000
commit59a61b3c93f6a109f1e1bfe94fd0ab4a28169a9e (patch)
tree6c9cf4322312c53c9bb9b928ff9b79c426cff6b0 /scd/app-common.h
parent* keylist.c (print_card_serialno): New. (diff)
downloadgnupg-59a61b3c93f6a109f1e1bfe94fd0ab4a28169a9e.tar.gz
gnupg-59a61b3c93f6a109f1e1bfe94fd0ab4a28169a9e.zip
* command.c (cmd_getattr): New command GETATTR.
* app.c (app_setattr): New. (do_getattr): New. (do_learn_status): Reimplemented in terms of do_getattr. * app-openpgp.c (do_change_pin): Make sure CVH1 and CHV2 are always synced. (verify_chv2, verify_chv3): New. Factored out common code. (do_setattr, do_sign, do_auth, do_decipher): Change the names of the prompts to match that we have only 2 different PINs. (app_select_openpgp): Check whether the card enforced CHV1. (convert_sig_counter_value): New. Factor out code from get_sig_counter.
Diffstat (limited to '')
-rw-r--r--scd/app-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scd/app-common.h b/scd/app-common.h
index 1243ca3ec..e4b9d2f6c 100644
--- a/scd/app-common.h
+++ b/scd/app-common.h
@@ -31,10 +31,12 @@ struct app_ctx_s {
size_t serialnolen; /* Length in octets of serialnumber. */
unsigned int card_version;
int did_chv1;
+ int force_chv1; /* True if the card does not cache CHV1. */
int did_chv2;
int did_chv3;
struct {
int (*learn_status) (APP app, CTRL ctrl);
+ int (*getattr) (APP app, CTRL ctrl, const char *name);
int (*setattr) (APP app, const char *name,
int (*pincb)(void*, const char *, char **),
void *pincb_arg,
@@ -73,6 +75,7 @@ void app_set_default_reader_port (const char *portstr);
APP select_application (void);
int app_get_serial_and_stamp (APP app, char **serial, time_t *stamp);
int app_write_learn_status (APP app, CTRL ctrl);
+int app_getattr (APP app, CTRL ctrl, const char *name);
int app_setattr (APP app, const char *name,
int (*pincb)(void*, const char *, char **),
void *pincb_arg,