aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-02-19 17:39:05 +0000
committerWerner Koch <[email protected]>2002-02-19 17:39:05 +0000
commit488243f56e6c34daa63ec37f3afe25c84dd833a8 (patch)
tree88e4b9f564ee7efffa546a4bcde1df74a56871b5 /sm/gpgsm.h
parent* findkey.c (unprotect): Show an error message for a bad passphrase. (diff)
downloadgnupg-488243f56e6c34daa63ec37f3afe25c84dd833a8.tar.gz
gnupg-488243f56e6c34daa63ec37f3afe25c84dd833a8.zip
* certpath.c (check_cert_policy): New.
(gpgsm_validate_path): And call it from here. * gpgsm.c (main): New options --policy-file, --disable-policy-checks and --enable-policy-checks. * gpgsm.h (opt): Added policy_file, no_policy_checks.
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index fdb68441e..ab2d3660d 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -66,7 +66,10 @@ struct {
int ignore_time_conflict; /* Ignore certain time conflicts */
- int no_crl_check; /* Don't do a CRL check */
+ int no_crl_check; /* Don't do a CRL check */
+
+ char *policy_file; /* full pathname of policy file */
+ int no_policy_check; /* ignore certificate policies */
} opt;
@@ -208,6 +211,7 @@ int gpgsm_agent_pkdecrypt (const char *keygrip,
int gpgsm_agent_genkey (KsbaConstSexp keyparms, KsbaSexp *r_pubkey);
int gpgsm_agent_istrusted (KsbaCert cert);
int gpgsm_agent_havekey (const char *hexkeygrip);
+int gpgsm_agent_marktrusted (KsbaCert cert);
/*-- call-dirmngr.c --*/
int gpgsm_dirmngr_isvalid (KsbaCert cert);