aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2006-02-22 23:19:36 +0000
committerDavid Shaw <[email protected]>2006-02-22 23:19:36 +0000
commit482a3a0101e6e8f8f5fad65c66b5f5b66f3ea275 (patch)
tree852dea2704a4add8d396a9775ec6ad8126256ab3
parent* options.h, keyserver.c (parse_keyserver_options): Remove (diff)
downloadgnupg-482a3a0101e6e8f8f5fad65c66b5f5b66f3ea275.tar.gz
gnupg-482a3a0101e6e8f8f5fad65c66b5f5b66f3ea275.zip
* gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut down on
odd matches.
Diffstat (limited to '')
-rw-r--r--keyserver/ChangeLog5
-rw-r--r--keyserver/gpgkeys_hkp.c3
2 files changed, 8 insertions, 0 deletions
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 <[email protected]>
+
+ * gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut
+ down on odd matches.
+
2006-02-21 David Shaw <[email protected]>
* 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);