mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
vtls.c: Fixed compilation warning
conversion from 'size_t' to 'unsigned int', possible loss of data
This commit is contained in:
parent
f3fc3d021d
commit
32913182dc
@ -68,6 +68,7 @@
|
|||||||
#include "share.h"
|
#include "share.h"
|
||||||
#include "timeval.h"
|
#include "timeval.h"
|
||||||
#include "curl_md5.h"
|
#include "curl_md5.h"
|
||||||
|
#include "warnless.h"
|
||||||
|
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#define _MPRINTF_REPLACE /* use our functions only */
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
@ -749,8 +750,9 @@ void Curl_ssl_md5sum(unsigned char *tmp, /* input */
|
|||||||
MD5_context *MD5pw;
|
MD5_context *MD5pw;
|
||||||
|
|
||||||
(void) md5len;
|
(void) md5len;
|
||||||
|
|
||||||
MD5pw = Curl_MD5_init(Curl_DIGEST_MD5);
|
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);
|
Curl_MD5_final(MD5pw, md5sum);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user