aboutsummaryrefslogtreecommitdiff
path: root/lib/ssluse.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-03-16 19:06:34 +0100
committerYang Tse <yangsita@gmail.com>2012-03-16 19:06:34 +0100
commit8af4b657d0f44bd6f2b1d672666c046e53af0e0c (patch)
treee65809f4fb6fe2e4bde8449849025d39883efc83 /lib/ssluse.c
parent97386c3c84251ca6a185916b28e61c100a901c1a (diff)
fix some compiler warnings
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index c3d5ec4c7..d31c2e07b 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -67,6 +67,7 @@
#include <x509v3.h>
#endif
+#include "warnless.h"
#include "curl_memory.h"
#include "non-ascii.h" /* for Curl_convert_from_utf8 prototype */
@@ -254,7 +255,7 @@ static int ossl_seed(struct SessionHandle *data)
if(!area)
return 3; /* out of memory */
- len = (int)strlen(area);
+ len = curlx_uztosi(strlen(area));
RAND_add(area, len, (len >> 1));
free(area); /* now remove the random junk */
@@ -1252,7 +1253,7 @@ static CURLcode verifyhost(struct connectdata *conn,
else /* not a UTF8 name */
j = ASN1_STRING_to_UTF8(&peer_CN, tmp);
- if(peer_CN && ((int)strlen((char *)peer_CN) != j)) {
+ if(peer_CN && (curlx_uztosi(strlen((char *)peer_CN)) != j)) {
/* there was a terminating zero before the end of string, this
cannot match and we return failure! */
failf(data, "SSL: illegal cert name field");