From 50934a542db751474ec2db6f007a8aa70e6fbdf8 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 --- src/libmbedcrypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libmbedcrypto.c b/src/libmbedcrypto.c index 79f8ecc2..35e750e4 100644 --- a/src/libmbedcrypto.c +++ b/src/libmbedcrypto.c @@ -693,7 +693,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; @@ -751,7 +751,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;