summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2017-08-22 09:10:50 +1000
committerPauli <paul.dale@oracle.com>2017-08-22 15:16:28 +1000
commit173f0a0e61139d721c203c12213d1a162eb545d4 (patch)
treefec9f15d78f7b4cff073597a881ed07f81744f90 /crypto/pem
parent0ab24083a16c8a4dd35833031bbeaeb0437a7219 (diff)
Use casts for arguments to ctype functions.
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4212)
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index c82b3c0ae2..865976bf8c 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -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++;