From 482a3a0101e6e8f8f5fad65c66b5f5b66f3ea275 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Wed, 22 Feb 2006 23:19:36 +0000 Subject: [PATCH] * gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut down on odd matches. --- keyserver/ChangeLog | 5 +++++ keyserver/gpgkeys_hkp.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog index 3192f366f..948fd75f1 100644 --- a/keyserver/ChangeLog +++ b/keyserver/ChangeLog @@ -1,3 +1,8 @@ +2006-02-22 David Shaw + + * gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut + down on odd matches. + 2006-02-21 David Shaw * gpgkeys_ldap.c (make_one_attr, build_attrs, send_key): Don't diff --git a/keyserver/gpgkeys_hkp.c b/keyserver/gpgkeys_hkp.c index df03bc75b..c1160fa33 100644 --- a/keyserver/gpgkeys_hkp.c +++ b/keyserver/gpgkeys_hkp.c @@ -327,6 +327,9 @@ get_name(const char *getkey) append_path(request,"/pks/lookup?op=get&options=mr&search="); strcat(request,searchkey_encoded); + if(opt->action==KS_GETNAME) + strcat(request,"&exact=on"); + if(opt->verbose>2) fprintf(console,"gpgkeys: HTTP URL is `%s'\n",request);