From: Dmitry Belyavskiy Date: Sun, 18 Aug 2019 08:29:50 +0000 (+0300) Subject: Get rid of using deprecated function isascii X-Git-Tag: openssl-3.0.0-alpha1~1566 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17860288cde76f6e1ee0ff5cfc9fd649b12fc75c;p=thirdparty%2Fopenssl.git Get rid of using deprecated function isascii Avoid using functions deprecated in some libcs (e.g. uClibc-ng). Fixes #9557 Reviewed-by: Bernd Edlinger Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/9628) --- diff --git a/apps/s_server.c b/apps/s_server.c index 3ded4f88cc1..28937bd80f4 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -470,7 +470,7 @@ static int ssl_servername_cb(SSL *s, int *ad, void *arg) BIO_printf(p->biodebug, "Hostname in TLS extension: \""); while ((uc = *cp++) != 0) 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"); }