mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* 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.
This commit is contained in:
parent
f8a3345229
commit
73fb1c592f
5 changed files with 34 additions and 7 deletions
|
@ -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? */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue