diff options
author | opensslonzos-github <opensslonzos-github@yahoo.com> | 2019-08-08 14:11:38 -0400 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-08-14 10:41:41 +0100 |
commit | 48102247ff513d4c57b40b19c1d432f37b9e4b02 (patch) | |
tree | 26afaf1a8a6fb2ec673f2cb402d71517bb32da84 /crypto/ctype.c | |
parent | 86333b6e0c5c488130ab237e95b8520891b81bf6 (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/ctype.c')
-rw-r--r-- | crypto/ctype.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/ctype.c b/crypto/ctype.c index e7aa606827..e7bc25b976 100644 --- a/crypto/ctype.c +++ b/crypto/ctype.c @@ -272,3 +272,9 @@ int ossl_toupper(int c) { return ossl_islower(c) ? c ^ case_change : c; } + +int ascii_isdigit(const char inchar) { + if (inchar > 0x2F && inchar < 0x3A) + return 1; + return 0; +} |