diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_mbstr.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/a_mbstr.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/libcrypto/asn1/a_mbstr.c b/src/lib/libcrypto/asn1/a_mbstr.c index 264d8f677f..dc953c8325 100644 --- a/src/lib/libcrypto/asn1/a_mbstr.c +++ b/src/lib/libcrypto/asn1/a_mbstr.c | |||
| @@ -385,16 +385,9 @@ static int is_printable(unsigned long value) | |||
| 385 | /* Note: we can't use 'isalnum' because certain accented | 385 | /* Note: we can't use 'isalnum' because certain accented |
| 386 | * characters may count as alphanumeric in some environments. | 386 | * characters may count as alphanumeric in some environments. |
| 387 | */ | 387 | */ |
| 388 | #ifndef CHARSET_EBCDIC | ||
| 389 | if((ch >= 'a') && (ch <= 'z')) return 1; | 388 | if((ch >= 'a') && (ch <= 'z')) return 1; |
| 390 | if((ch >= 'A') && (ch <= 'Z')) return 1; | 389 | if((ch >= 'A') && (ch <= 'Z')) return 1; |
| 391 | if((ch >= '0') && (ch <= '9')) return 1; | 390 | if((ch >= '0') && (ch <= '9')) return 1; |
| 392 | if ((ch == ' ') || strchr("'()+,-./:=?", ch)) return 1; | 391 | if ((ch == ' ') || strchr("'()+,-./:=?", ch)) return 1; |
| 393 | #else /*CHARSET_EBCDIC*/ | ||
| 394 | if((ch >= os_toascii['a']) && (ch <= os_toascii['z'])) return 1; | ||
| 395 | if((ch >= os_toascii['A']) && (ch <= os_toascii['Z'])) return 1; | ||
| 396 | if((ch >= os_toascii['0']) && (ch <= os_toascii['9'])) return 1; | ||
| 397 | if ((ch == os_toascii[' ']) || strchr("'()+,-./:=?", os_toebcdic[ch])) return 1; | ||
| 398 | #endif /*CHARSET_EBCDIC*/ | ||
| 399 | return 0; | 392 | return 0; |
| 400 | } | 393 | } |
