summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/OpenSSL/p5_crpt2.c')
-rw-r--r--protocols/WhatsApp/src/OpenSSL/p5_crpt2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c b/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c
index cc3b012ac0..18b366d2c2 100644
--- a/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c
+++ b/protocols/WhatsApp/src/OpenSSL/p5_crpt2.c
@@ -56,6 +56,7 @@
*
*/
#include <stdio.h>
+#include <string.h>
#include <stdlib.h>
#include "evp.h"
@@ -82,7 +83,7 @@ int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,
p = out;
tkeylen = keylen;
if(!pass) passlen = 0;
- else if(passlen == -1) passlen = strlen(pass);
+ else if(passlen == -1) passlen = (int)strlen(pass);
while(tkeylen) {
if(tkeylen > SHA_DIGEST_LENGTH) cplen = SHA_DIGEST_LENGTH;
else cplen = tkeylen;