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:41:41 +0100
commit48102247ff513d4c57b40b19c1d432f37b9e4b02 (patch)
tree26afaf1a8a6fb2ec673f2cb402d71517bb32da84 /crypto/include
parent86333b6e0c5c488130ab237e95b8520891b81bf6 (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)
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 adcbc8b3d5..d0660cf9c4 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