diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2019-08-18 11:29:50 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2019-08-19 20:52:25 +0300 |
commit | 17860288cde76f6e1ee0ff5cfc9fd649b12fc75c (patch) | |
tree | 5a40adbd2ea847c1b1f3652de399211bfb36d58b /apps/s_server.c | |
parent | 038b381ecf2a988eee4c7bb21074ed0603303bd1 (diff) |
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)
Diffstat (limited to 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |