aboutsummaryrefslogtreecommitdiffstats
path: root/g10/status.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-10-29 10:07:44 +0000
committerWerner Koch <[email protected]>2003-10-29 10:07:44 +0000
commitfcc72f915bbafe2e1f1f68be7e79d7b45561da62 (patch)
treecabc573682cc56a710a40e251b33847d38ef1cb9 /g10/status.h
parent* DETAILS: Add the 'a' value for field 12 and the new field 15. (diff)
downloadgnupg-fcc72f915bbafe2e1f1f68be7e79d7b45561da62.tar.gz
gnupg-fcc72f915bbafe2e1f1f68be7e79d7b45561da62.zip
* cardglue.c (open_card): Ask for card insertion.
(check_card_serialno): New. (agent_scd_pksign, agent_scd_pkdecrypt): Use it here. * cardglue.c (open_card): Issue insertion status message. * status.h, status.c (STATUS_CARDCTRL): New. * status.c (cpr_get_answer_okay_cancel): New. * miscutil.c (answer_is_okay_cancel): New.
Diffstat (limited to 'g10/status.h')
-rw-r--r--g10/status.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/status.h b/g10/status.h
index 68da60d28..73cc3f1a9 100644
--- a/g10/status.h
+++ b/g10/status.h
@@ -100,6 +100,7 @@
#define STATUS_IMPORT_OK 68
#define STATUS_IMPORT_CHECK 69
#define STATUS_REVKEYSIG 70
+#define STATUS_CARDCTRL 71
/*-- status.c --*/
void set_status_fd ( int fd );
@@ -123,6 +124,9 @@ char *cpr_get_hidden( const char *keyword, const char *prompt );
void cpr_kill_prompt(void);
int cpr_get_answer_is_yes( const char *keyword, const char *prompt );
int cpr_get_answer_yes_no_quit( const char *keyword, const char *prompt );
+int cpr_get_answer_okay_cancel (const char *keyword,
+ const char *prompt,
+ int def_answer);
#endif /*G10_STATUS_H*/