1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-15 00:29:49 +02:00
gnupg/sm
Werner Koch 9dc355ad3a
gpg: Make sure to mark a duplicate registered keybox as primary.
* kbx/keybox-init.c (keybox_register_file): Change interface to return
the token even if the file has already been registered.
* g10/keydb.c (primary_keyring): Rename to primary_keydb.
(maybe_create_keyring_or_box): Change return type to gpg_error_t.
(keydb_add_resource): Ditto. s/rc/err/.
(keydb_add_resource): Mark an already registered as primary.
* sm/keydb.c (maybe_create_keybox): Change return type to gpg_error_t.
(keydb_add_resource): Ditto. s/rc/err/.
(keydb_add_resource): Adjust for changed keybox_register_file.
--

This change aligns the registering of keyboxes with those of
keyrings.  This fixes a potential bug:

  gpg --keyring foo.kbx --keyring bar.gpg --keyring foo.kbx

would have marked bar.gpg as primary resource and thus inserting new
keys there.  The correct and now fixed behavior is to insert to
foo.kbx.

Signed-off-by: Werner Koch <wk@gnupg.org>
2016-01-13 10:43:33 +01:00
..
base64.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
call-agent.c Print warnings if old daemon versions are used. 2016-01-08 10:33:19 +01:00
call-dirmngr.c Print warnings if old daemon versions are used. 2016-01-08 10:33:19 +01:00
certchain.c sm: Avoid warnings about useless assignments. 2016-01-07 19:09:16 +01:00
certcheck.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
certdump.c Avoid incompatible pointer assignment warnings on Windows. 2015-11-27 18:32:17 +01:00
certlist.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
certreqgen-ui.c sm: Silence compiler warnings. 2014-09-18 15:17:44 +02:00
certreqgen.c sm: Allow combination of usage flags --gen-key. 2015-10-28 18:57:53 +01:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
decrypt.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
delete.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
encrypt.c sm: Handle gcry_pk_encrypt return value. 2015-12-15 12:38:25 +09:00
export.c gpgsm: New commands --export-secret-key-{p8,raw} 2014-06-03 18:57:33 +02:00
fingerprint.c sm: Avoid warnings about useless assignments. 2016-01-07 19:09:16 +01:00
gpgsm-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgsm.c sm: Avoid warnings about useless assignments. 2016-01-07 19:09:16 +01:00
gpgsm.h Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros. 2015-07-26 12:50:24 +02:00
import.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
keydb.c gpg: Make sure to mark a duplicate registered keybox as primary. 2016-01-13 10:43:33 +01:00
keydb.h gpg: Make sure to mark a duplicate registered keybox as primary. 2016-01-13 10:43:33 +01:00
keylist.c Add new option --with-secret. 2014-06-03 21:35:59 +02:00
Makefile.am gpg: Avoid linking to Libksba 2015-08-17 16:17:19 +02:00
minip12.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
minip12.h gpgsm: New commands --export-secret-key-{p8,raw} 2014-06-03 18:57:33 +02:00
misc.c sm,g13: Init local vars to avoid compiler warnings. 2015-01-05 15:15:37 +01:00
qualified.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
server.c sm: Avoid warnings about useless assignments. 2016-01-07 19:09:16 +01:00
sign.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
verify.c gpg,sm: Remove unnecessary duplicated checks 2015-01-23 15:30:03 +01:00