From cd5e2b0a689a7b22bd470e70ed0b8c84305d6d03 Mon Sep 17 00:00:00 2001 From: opensslonzos-github Date: Thu, 8 Aug 2019 14:11:38 -0400 Subject: Add missing EBCDIC strings Fix a few places where calling ossl_isdigit does the wrong thing on EBCDIC based systems. Replaced with ascii_isdigit. Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9556) (cherry picked from commit 48102247ff513d4c57b40b19c1d432f37b9e4b02) --- crypto/include/internal/ctype.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/include') diff --git a/crypto/include/internal/ctype.h b/crypto/include/internal/ctype.h index a35b12bfbf..80f1f8c7fd 100644 --- a/crypto/include/internal/ctype.h +++ b/crypto/include/internal/ctype.h @@ -57,6 +57,8 @@ int ossl_ctype_check(int c, unsigned int mask); int ossl_tolower(int c); int ossl_toupper(int c); +int ascii_isdigit(const char inchar); + # define ossl_isalnum(c) (ossl_ctype_check((c), CTYPE_MASK_alnum)) # define ossl_isalpha(c) (ossl_ctype_check((c), CTYPE_MASK_alpha)) # ifdef CHARSET_EBCDIC -- cgit v1.2.3