mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Allow gpgv to work with a trustedkeys.kbx file.
* g10/keydb.h (KEYDB_RESOURCE_FLAG_GPGVDEF): New. * g10/keydb.c (keydb_add_resource): Take care of new flag. * g10/gpgv.c (main): Use new flag. -- GnuPG-bug-id: 2025 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
a68c5c5c7f
commit
5b7a80b1ab
4 changed files with 24 additions and 3 deletions
|
@ -205,8 +205,9 @@ main( int argc, char **argv )
|
|||
|
||||
/* Note: We open all keyrings in read-only mode. */
|
||||
if (!nrings) /* No keyring given: use default one. */
|
||||
keydb_add_resource ("trustedkeys" EXTSEP_S GPGEXT_GPG,
|
||||
KEYDB_RESOURCE_FLAG_READONLY);
|
||||
keydb_add_resource ("trustedkeys" EXTSEP_S "kbx",
|
||||
(KEYDB_RESOURCE_FLAG_READONLY
|
||||
|KEYDB_RESOURCE_FLAG_GPGVDEF));
|
||||
for (sl = nrings; sl; sl = sl->next)
|
||||
keydb_add_resource (sl->d, KEYDB_RESOURCE_FLAG_READONLY);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue