aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-08-27 18:10:27 +0000
committerWerner Koch <[email protected]>2007-08-27 18:10:27 +0000
commit15d0cb42a19cc88448993d4aa7a9ca207ccc1598 (patch)
tree8625d9d35542e43d659b58c378e6c968b73bbbeb /agent/agent.h
parenttryu harder to ignore duplicate specified keyrings and -boxes. (diff)
downloadgnupg-15d0cb42a19cc88448993d4aa7a9ca207ccc1598.tar.gz
gnupg-15d0cb42a19cc88448993d4aa7a9ca207ccc1598.zip
Implemented more gpg-agen options to support certain passphrase policies.
New tool gpg-check-pattern.
Diffstat (limited to 'agent/agent.h')
-rw-r--r--agent/agent.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h
index 22225f6a2..8531f395a 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -80,8 +80,15 @@ struct
unsigned long max_cache_ttl; /* Default. */
unsigned long max_cache_ttl_ssh; /* for SSH. */
+ /* Flag disallowin bypassing of the warning. */
+ int enforce_passphrase_constraints;
/* The require minmum length of a passphrase. */
unsigned int min_passphrase_len;
+ /* The minimum number of non-alpha characters in a passphrase. */
+ unsigned int min_passphrase_nonalpha;
+ /* File name with a patternfile or NULL if not enabled. */
+ const char *check_passphrase_pattern;
+
int running_detached; /* We are running detached from the tty. */
@@ -227,6 +234,7 @@ int agent_get_passphrase (ctrl_t ctrl, char **retpass,
const char *errtext);
int agent_get_confirmation (ctrl_t ctrl, const char *desc, const char *ok,
const char *cancel);
+int agent_show_message (ctrl_t ctrl, const char *desc, const char *ok_btn);
int agent_popup_message_start (ctrl_t ctrl,
const char *desc, const char *ok_btn);
void agent_popup_message_stop (ctrl_t ctrl);