* gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut down on
authorDavid Shaw <dshaw@jabberwocky.com>
Wed, 22 Feb 2006 23:19:36 +0000 (23:19 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Wed, 22 Feb 2006 23:19:36 +0000 (23:19 +0000)
odd matches.

keyserver/ChangeLog
keyserver/gpgkeys_hkp.c

index 3192f36..948fd75 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-22  David Shaw  <dshaw@jabberwocky.com>
+
+       * gpgkeys_hkp.c (get_name): A GETNAME query turns exact=on to cut
+       down on odd matches.
+
 2006-02-21  David Shaw  <dshaw@jabberwocky.com>
 
        * gpgkeys_ldap.c (make_one_attr, build_attrs, send_key): Don't
index df03bc7..c1160fa 100644 (file)
@@ -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);