aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyserver.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-09-23 17:48:33 +0000
committerWerner Koch <[email protected]>2003-09-23 17:48:33 +0000
commit4c66e94ff91d680eaf1d9c48a62d66d1951f90ef (patch)
tree66ede04edbfe1c45eece46e852093282832f8312 /g10/keyserver.c
parent2003-09-22 Timo Schulz <[email protected]> (diff)
downloadgnupg-4c66e94ff91d680eaf1d9c48a62d66d1951f90ef.tar.gz
gnupg-4c66e94ff91d680eaf1d9c48a62d66d1951f90ef.zip
Merged most of David Shaw's changes in 1.3 since 2003-06-03.
Diffstat (limited to '')
-rw-r--r--g10/keyserver.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c
index e4f56ca3b..445c07620 100644
--- a/g10/keyserver.c
+++ b/g10/keyserver.c
@@ -170,7 +170,8 @@ parse_keyserver_uri(char *uri,const char *configname,unsigned int configlineno)
opt.keyserver_scheme="hkp";
opt.keyserver_options.broken_http_proxy=1;
}
- else if(ascii_strcasecmp(opt.keyserver_scheme,"x-hkp")==0)
+ else if(ascii_strcasecmp(opt.keyserver_scheme,"x-hkp")==0
+ || ascii_strcasecmp(opt.keyserver_scheme,"http")==0)
{
/* Canonicalize this to "hkp" so it works with both the internal
and external keyserver interface. */
@@ -203,7 +204,7 @@ parse_keyserver_uri(char *uri,const char *configname,unsigned int configlineno)
ch=opt.keyserver_port;
while(*ch!='\0')
{
- if(!isdigit(*ch))
+ if(!digitp(ch))
return GPG_ERR_BAD_URI;
ch++;
@@ -340,7 +341,7 @@ parse_keyrec(char *keystring)
/* Remove trailing whitespace */
for(i=strlen(keystring);i>0;i--)
- if(isspace(keystring[i-1]))
+ if(ascii_isspace(keystring[i-1]))
keystring[i-1]='\0';
else
break;
@@ -978,7 +979,7 @@ keyserver_spawn(int action,STRLIST list,
/* remove trailing whitespace */
plen=strlen(ptr);
- while(plen>0 && isspace(ptr[plen-1]))
+ while(plen>0 && ascii_isspace(ptr[plen-1]))
plen--;
plen[ptr]='\0';