summaryrefslogtreecommitdiffstats
path: root/crypto/include
diff options
context:
space:
mode:
authoropensslonzos-github <opensslonzos-github@yahoo.com>2019-08-08 14:11:38 -0400
committerMatt Caswell <matt@openssl.org>2019-08-14 10:52:31 +0100
commitcd5e2b0a689a7b22bd470e70ed0b8c84305d6d03 (patch)
treee0ddf5e38a10af8d9edcf1f830b837a48ca17364 /crypto/include
parent5c9261aa07d197a94380e6f5d0e0b9f855924bc4 (diff)
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 <tmraz@fedoraproject.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9556) (cherry picked from commit 48102247ff513d4c57b40b19c1d432f37b9e4b02)
Diffstat (limited to 'crypto/include')
-rw-r--r--crypto/include/internal/ctype.h2
1 files changed, 2 insertions, 0 deletions
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