diff options
author | Werner Koch <[email protected]> | 2002-06-20 13:45:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-06-20 13:45:50 +0000 |
commit | 1211f36b15db05947d6a6627fa68979b800b35f9 (patch) | |
tree | 0d2bdbe19f5b615704e9f0b83e55756783ba08ea | |
parent | * verify.c (calc_sig_summary): Set bad policy for wrong key usage. (diff) | |
download | gpgme-1211f36b15db05947d6a6627fa68979b800b35f9.tar.gz gpgme-1211f36b15db05947d6a6627fa68979b800b35f9.zip |
* rungpg.c (build_argv): Ignore GPG_AGENT_INFO if set but empty.
-rw-r--r-- | gpgme/ChangeLog | 2 | ||||
-rw-r--r-- | gpgme/rungpg.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 5c68e9c9..d9752eb4 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,5 +1,7 @@ 2002-06-20 Werner Koch <[email protected]> + * rungpg.c (build_argv): Ignore GPG_AGENT_INFO if set but empty. + * verify.c (calc_sig_summary): Set bad policy for wrong key usage. (skip_token): New. (_gpgme_verify_status_handler): Watch out for wrong key usage. diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c index df84ee5d..dcc96bfd 100644 --- a/gpgme/rungpg.c +++ b/gpgme/rungpg.c @@ -577,7 +577,14 @@ build_argv (GpgObject gpg) size_t datac=0, argc=0; char **argv; int need_special = 0; - int use_agent = !!getenv ("GPG_AGENT_INFO"); + int use_agent = 0; + char *p; + + /* We don't want to use the agent with a malformed environment + variable. This is only a very basic test but sufficient to make + our life in the regression tests easier. */ + p = getenv ("GPG_AGENT_INFO"); + use_agent = (p && strchr (p, ':')); if (gpg->argv) { |