[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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 <xiaoxiang@xxxxxxxxxx>
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 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;
-- 
2.25.1


Archive administrator: postmaster@lists.cynapses.org