mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-11 23:59:50 +02:00
ab89164be0
* g10/getkey.c (struct pubkey_cmp_cookie): New type. (key_is_ok, uid_is_ok, subkey_is_ok): New functions. (pubkey_cmp): Likewise. (get_best_pubkey_byname): Likewise. * g10/keydb.h (get_best_pubkey_byname): New prototype. * g10/keylist.c (locate_one): Use the new function. * g10/pkclist.c (find_and_check_key): Likewise. * tests/openpgp/Makefile.am (XTESTS): Add new test. (TEST_FILES): Add new files. * tests/openpgp/key-selection.scm: New file. * tests/openpgp/key-selection/0.asc: Likewise. * tests/openpgp/key-selection/1.asc: Likewise. * tests/openpgp/key-selection/2.asc: Likewise. * tests/openpgp/key-selection/3.asc: Likewise. * tests/openpgp/key-selection/4.asc: Likewise. -- When a name resembling a mail address is given to either --locate-keys or --recipient, rank the search results and use only the most relevant key. This also lets us query which key will be used for encryption using --locate-keys. However, note that --locate-keys may also return keys incapable of encryption, though it will prefer keys that have an encryption subkey. GnuPG-bug-id: 2359 Signed-off-by: Justus Winter <justus@g10code.com> |
||
---|---|---|
.. | ||
extrasamples | ||
fake-pinentries | ||
gpgscm | ||
migrations | ||
openpgp | ||
pkits | ||
samplekeys | ||
samplemsgs | ||
567064FE6D14A17B2D811ABB407728BC558AA455 | ||
asschk.c | ||
cert_cci_sphinx_ca.pem | ||
cert_cci_test_wzs.pem | ||
cert_cci_test_zs.pem | ||
cert_cci_user02.pem | ||
cert_cci_user03.pem | ||
cert_cci_user04.pem | ||
cert_cci_user06.pem | ||
cert_cci_user07.pem | ||
cert_testpki_testpca.pem | ||
ChangeLog-2011 | ||
crl_testpki_testpca.pem | ||
inittests | ||
key_g10code_pete1.pem | ||
key_g10code_theo1.pem | ||
Makefile.am | ||
runtest | ||
skey_g10code_test1.pem | ||
sm-sign+verify | ||
sm-verify | ||
text-1.dsig.pem | ||
text-1.osig-bad.pem | ||
text-1.osig-badusage.pem | ||
text-1.osig.pem | ||
text-1.txt | ||
text-2.osig-bad.pem | ||
text-2.osig.pem | ||
text-2.txt | ||
text-3.txt |