mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
added trustdb update/check for stream import as well
This commit is contained in:
parent
b9c091bd86
commit
78c754cd70
@ -1,7 +1,8 @@
|
|||||||
2002-09-21 Stefan Bellon <sbellon@sbellon.de>
|
2002-09-22 Stefan Bellon <sbellon@sbellon.de>
|
||||||
|
|
||||||
* import.c (import_keys): Added trustdb update/check to key import
|
* import.c (import_keys, import_keys_stream): Added trustdb
|
||||||
if not fast-import and interactive set/no-auto-check-trustdb unset.
|
update/check to key import if not fast-import and interactive
|
||||||
|
set/no-auto-check-trustdb unset.
|
||||||
|
|
||||||
2002-09-19 David Shaw <dshaw@jabberwocky.com>
|
2002-09-19 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
12
g10/import.c
12
g10/import.c
@ -236,6 +236,18 @@ import_keys_stream( IOBUF inp, int fast,
|
|||||||
import_release_stats_handle (stats);
|
import_release_stats_handle (stats);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If no fast import and we really added new keys or merged new
|
||||||
|
user ids, signatures or revocations, then update/check the
|
||||||
|
trustdb if the user specified by setting interactive or by
|
||||||
|
not setting no-auto-check-trustdb */
|
||||||
|
if (!fast && (stats->imported || stats->n_uids ||
|
||||||
|
stats->n_sigs || stats->n_revoc)) {
|
||||||
|
if (opt.interactive)
|
||||||
|
update_trustdb();
|
||||||
|
else if (!opt.no_auto_check_trustdb)
|
||||||
|
check_trustdb();
|
||||||
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user