mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-01 12:09:42 +00:00
Use casts for arguments to ctype functions.
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4212)
This commit is contained in:
parent
0ab24083a1
commit
173f0a0e61
@ -536,7 +536,8 @@ int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
|
||||
((c >= '0') && (c <= '9'))))
|
||||
break;
|
||||
#else
|
||||
if (!(isupper(c) || (c == '-') || isdigit(c)))
|
||||
if (!(isupper((unsigned char)c) || (c == '-')
|
||||
|| isdigit((unsigned char)c)))
|
||||
break;
|
||||
#endif
|
||||
header++;
|
||||
|
@ -1205,7 +1205,7 @@ static int ssl_cipher_process_rulestr(const char *rule_str,
|
||||
((ch >= '0') && (ch <= '9')) ||
|
||||
((ch >= 'a') && (ch <= 'z')) || (ch == '-') || (ch == '.'))
|
||||
#else
|
||||
while (isalnum(ch) || (ch == '-') || (ch == '.'))
|
||||
while (isalnum((unsigned char)ch) || (ch == '-') || (ch == '.'))
|
||||
#endif
|
||||
{
|
||||
ch = *(++l);
|
||||
|
Loading…
x
Reference in New Issue
Block a user