1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* gpgkeys_hkp.c (search_key): HKP keyservers like the 0x to be present

when searching by keyID.
This commit is contained in:
David Shaw 2006-12-03 06:04:58 +00:00
parent 5b636f40ef
commit b111b0ed69
2 changed files with 11 additions and 0 deletions

View file

@ -426,6 +426,12 @@ search_key(const char *searchkey)
strcat(request,"11371");
strcat(request,opt->path);
append_path(request,"/pks/lookup?op=index&options=mr&search=");
/* HKP keyservers like the 0x to be present when searching by
keyid */
if(search_type==KS_SEARCH_KEYID_SHORT || search_type==KS_SEARCH_KEYID_LONG)
strcat(request,"0x");
strcat(request,searchkey_encoded);
if(search_type!=KS_SEARCH_SUBSTR)