aboutsummaryrefslogtreecommitdiffstats
path: root/sm/import.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-02-13 16:47:14 +0000
committerWerner Koch <[email protected]>2008-02-13 16:47:14 +0000
commit0819c1e8ca8b02a1191fc0087a8046bce6770fff (patch)
treefa756b18d2ec580b22b77f0ffec468be76ec79f1 /sm/import.c
parent2008-02-09 Marcus Brinkmann <[email protected]> (diff)
downloadgnupg-0819c1e8ca8b02a1191fc0087a8046bce6770fff.tar.gz
gnupg-0819c1e8ca8b02a1191fc0087a8046bce6770fff.zip
Always search missing certifcates using a running Dirmngr's cache.
Diffstat (limited to 'sm/import.c')
-rw-r--r--sm/import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/import.c b/sm/import.c
index 7c825daf3..ba49da5dd 100644
--- a/sm/import.c
+++ b/sm/import.c
@@ -172,7 +172,7 @@ check_and_store (ctrl_t ctrl, struct stats_s *stats,
Optionally we do a full validation in addition to the basic test.
*/
- rc = gpgsm_basic_cert_check (cert);
+ rc = gpgsm_basic_cert_check (ctrl, cert);
if (!rc && ctrl->with_validation)
rc = gpgsm_validate_chain (ctrl, cert, "", NULL, 0, NULL, 0, NULL);
if (!rc || (!ctrl->with_validation
@@ -216,7 +216,7 @@ check_and_store (ctrl_t ctrl, struct stats_s *stats,
the chain. This is required in case we already stored
parent certificates in the ephemeral keybox. Do not
update the statistics, though. */
- if (!gpgsm_walk_cert_chain (cert, &next))
+ if (!gpgsm_walk_cert_chain (ctrl, cert, &next))
{
check_and_store (ctrl, NULL, next, depth+1);
ksba_cert_release (next);