gnupg/tests
Ingo Klöcker 82c53efd63 gpg: Look up user ID to mark as primary by UID hash
* g10/keyedit.c (find_userid_by_namehash, find_userid): Add argument
want_valid. Skip invalid user IDs if valid is wanted.
(keyedit_quick_revuid): Ask find_userid() for any matching user ID.
(keyedit_quick_set_primary): Use find_userid() to find the user ID to
mark as primary.
* tests/openpgp/quick-key-manipulation.scm: Change second call of the
quick-set-primary-uid test to specify the user ID by its hash.
--

This makes it possible to specify the user ID to mark as primary via its
UID hash when calling --quick-set-primary-uid.

GnuPG-bug-id: 6126
2022-08-08 12:31:15 +02:00
..
cms w32: Fix for make check. 2022-04-06 11:28:00 +09:00
extrasamples Added sample certificates. 2006-05-16 09:54:41 +00:00
fake-pinentries docs: Point to https://dev.gnupg.org/ . 2017-05-18 15:05:57 -04:00
gpgme w32: Fix for make check. 2022-04-06 11:28:00 +09:00
gpgscm tests: Enable tests with keyboxd only when it's configured. 2022-05-10 11:49:06 +09:00
migrations w32: Fix for make check. 2022-04-06 11:28:00 +09:00
openpgp gpg: Look up user ID to mark as primary by UID hash 2022-08-08 12:31:15 +02:00
pkits tests: New way to make use of gpgconf.ctl in tests. 2021-10-12 14:30:13 +02:00
tpm2dtests tests: Add missing file for tpm2d tests to the tarball. 2022-07-27 11:40:33 +02:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am tests: New way to make use of gpgconf.ctl in tests. 2021-10-12 14:30:13 +02:00
asschk.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
gpgconf.ctl.in tests: Install links for tpm2daemon 2022-08-01 15:10:07 +02:00
run-tests.scm tests: Rename subdir gpgsm to cms and move sample dirs. 2021-05-31 21:51:45 +02:00