aboutsummaryrefslogtreecommitdiffstats
path: root/sm/certpath.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-03-28 17:21:54 +0000
committerWerner Koch <[email protected]>2002-03-28 17:21:54 +0000
commitd5a95ff130bcf6a5b7267751e64e8c23ddbd103d (patch)
treebd50d6f72a26c026669aa9d2de8c9fb70864b8e9 /sm/certpath.c
parent* keylist.c (list_cert_colon): Fixed listing of crt record; the (diff)
downloadgnupg-d5a95ff130bcf6a5b7267751e64e8c23ddbd103d.tar.gz
gnupg-d5a95ff130bcf6a5b7267751e64e8c23ddbd103d.zip
* certpath.c (gpgsm_walk_cert_chain): Be a bit more silent on
common errors.
Diffstat (limited to 'sm/certpath.c')
-rw-r--r--sm/certpath.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sm/certpath.c b/sm/certpath.c
index 12f4ba5c0..ad408fd52 100644
--- a/sm/certpath.c
+++ b/sm/certpath.c
@@ -237,7 +237,10 @@ gpgsm_walk_cert_chain (KsbaCert start, KsbaCert *r_next)
rc = keydb_search_subject (kh, issuer);
if (rc)
{
- log_error ("failed to find issuer's certificate: rc=%d\n", rc);
+ /* it is quite common not to have a certificate, so better don't
+ print an error here */
+ if (rc != -1 && opt.verbose > 1)
+ log_error ("failed to find issuer's certificate: rc=%d\n", rc);
rc = GNUPG_Missing_Certificate;
goto leave;
}