summaryrefslogtreecommitdiffstats
path: root/g10/keyserver.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-04-07 21:31:12 +0200
committerWerner Koch <wk@gnupg.org>2008-04-07 21:31:12 +0200
commit86f35a55d01f1ef7aec2b303a722ff5733148aa4 (patch)
tree99cb8163a8db0deba06608fec178ea9ad602e5c0 /g10/keyserver.c
parentFixed last yat2m change. (diff)
downloadgnupg2-86f35a55d01f1ef7aec2b303a722ff5733148aa4.tar.xz
gnupg2-86f35a55d01f1ef7aec2b303a722ff5733148aa4.zip
Minor cleanups.
Implemented key helper kdns
Diffstat (limited to 'g10/keyserver.c')
-rw-r--r--g10/keyserver.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c
index 9a4e08483..12be4c2f0 100644
--- a/g10/keyserver.c
+++ b/g10/keyserver.c
@@ -330,7 +330,15 @@ parse_keyserver_uri(const char *string,int require_scheme,
keyserver->scheme=xstrdup("hkp");
}
- if(assume_hkp || (uri[0]=='/' && uri[1]=='/'))
+ if (uri[0]=='/' && uri[1]=='/' && uri[2] == '/')
+ {
+ /* Three slashes means network path with a default host name.
+ This is a hack because it does not crok all possible
+ combiantions. We should better repalce all code bythe parser
+ from http.c. */
+ keyserver->path = xstrdup (uri+2);
+ }
+ else if(assume_hkp || (uri[0]=='/' && uri[1]=='/'))
{
/* Two slashes means network path. */