aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyserver.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-04-11 18:24:09 +0000
committerWerner Koch <[email protected]>2005-04-11 18:24:09 +0000
commit73fb1c592fc0cdecee33b4c69566401b9eb16b25 (patch)
treec0696d06c340a5083348d4a6a1254e2bb9251a05 /g10/keyserver.c
parent* ccid-driver.c (ccid_slot_status): Fixed debug messages. (diff)
downloadgnupg-73fb1c592fc0cdecee33b4c69566401b9eb16b25.tar.gz
gnupg-73fb1c592fc0cdecee33b4c69566401b9eb16b25.zip
* g10.c (main, add_notation_data, add_policy_url)
(add_keyserver_url): Use isascii() to protect the isfoo macros and to replace direct tests. Possible problems noted by Christian Biere. * keyserver.c (parse_keyserver_uri): Ditto. * g10.c (main): Declare --pipemode deprecated. * misc.c (deprecated_command): New.
Diffstat (limited to '')
-rw-r--r--g10/keyserver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c
index d52c95f0e..a4db688b9 100644
--- a/g10/keyserver.c
+++ b/g10/keyserver.c
@@ -261,7 +261,8 @@ parse_keyserver_uri(const char *uri,int require_scheme,
if(*uri=='[')
{
for(idx=uri+1,count=1;*idx
- && (isxdigit(*idx) || *idx==':' || *idx=='.');idx++)
+ && ((isascii (*idx) && isxdigit(*idx))
+ || *idx==':' || *idx=='.');idx++)
count++;
/* Is the ipv6 literal address terminated? */