aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-10-29 19:12:50 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-10-29 19:12:27 +0000
commit32913182dcdfa825f4f0dc1bcc30926b1d9c2958 (patch)
treeab342dd0560ee78965e4b7df63bce8aa8640a7e8 /lib/vtls
parentf3fc3d021d56f4842d4f4ce556ace446b8496e3f (diff)
vtls.c: Fixed compilation warning
conversion from 'size_t' to 'unsigned int', possible loss of data
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/vtls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c
index b01cbe7bc..1d1c62eba 100644
--- a/lib/vtls/vtls.c
+++ b/lib/vtls/vtls.c
@@ -68,6 +68,7 @@
#include "share.h"
#include "timeval.h"
#include "curl_md5.h"
+#include "warnless.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -749,8 +750,9 @@ void Curl_ssl_md5sum(unsigned char *tmp, /* input */
MD5_context *MD5pw;
(void) md5len;
+
MD5pw = Curl_MD5_init(Curl_DIGEST_MD5);
- Curl_MD5_update(MD5pw, tmp, tmplen);
+ Curl_MD5_update(MD5pw, tmp, curlx_uztoui(tmplen));
Curl_MD5_final(MD5pw, md5sum);
#endif
}