Get rid of using deprecated function isascii
Avoid using functions deprecated in some libcs (e.g. uClibc-ng). Fixes #9557 Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9628)
This commit is contained in:
parent
038b381ecf
commit
17860288cd
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ static int ssl_servername_cb(SSL *s, int *ad, void *arg)
|
||||||
BIO_printf(p->biodebug, "Hostname in TLS extension: \"");
|
BIO_printf(p->biodebug, "Hostname in TLS extension: \"");
|
||||||
while ((uc = *cp++) != 0)
|
while ((uc = *cp++) != 0)
|
||||||
BIO_printf(p->biodebug,
|
BIO_printf(p->biodebug,
|
||||||
isascii(uc) && isprint(uc) ? "%c" : "\\x%02x", uc);
|
(((uc) & ~127) == 0) && isprint(uc) ? "%c" : "\\x%02x", uc);
|
||||||
BIO_printf(p->biodebug, "\"\n");
|
BIO_printf(p->biodebug, "\"\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue