From 17860288cde76f6e1ee0ff5cfc9fd649b12fc75c Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Sun, 18 Aug 2019 11:29:50 +0300 Subject: [PATCH] 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) --- apps/s_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/s_server.c b/apps/s_server.c index 3ded4f88cc..28937bd80f 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"); } -- 2.39.2