mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Minor cleanups.
Implemented key helper kdns
This commit is contained in:
parent
ba63cfa79b
commit
86f35a55d0
17 changed files with 768 additions and 27 deletions
|
@ -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. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue