From c954ff4b2c205d17ec333fd18070f9373eeab61a Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 5 May 2021 09:15:38 -0700 Subject: [PATCH] mbedtls: Change the last argument of cipher_[de|en]crypt_cbc to size_t to avoid their prototype different from ssh_cipher_struct Signed-off-by: Xiang Xiao Reviewed-by: Jakub Jelen Change-Id: I6cba2d4fea131f13d028226023da692494caa87d (cherry picked from commit 50934a542db751474ec2db6f007a8aa70e6fbdf8) --- src/libmbedcrypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libmbedcrypto.c b/src/libmbedcrypto.c index 755c5ebe..a2e74d3b 100644 --- a/src/libmbedcrypto.c +++ b/src/libmbedcrypto.c @@ -687,7 +687,7 @@ static void cipher_encrypt(struct ssh_cipher_struct *cipher, } static void cipher_encrypt_cbc(struct ssh_cipher_struct *cipher, void *in, void *out, - unsigned long len) + size_t len) { size_t outlen = 0; int rc = 0; @@ -745,7 +745,7 @@ static void cipher_decrypt(struct ssh_cipher_struct *cipher, } static void cipher_decrypt_cbc(struct ssh_cipher_struct *cipher, void *in, void *out, - unsigned long len) + size_t len) { size_t outlen = 0; int rc = 0;