diff options
author | Xiang Xiao <xiaoxiang781216@gmail.com> | 2021-05-09 07:45:29 -0700 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2021-05-10 12:17:36 +0200 |
commit | aef467ab4a01133c8d7fca1a48144f72d9bb0124 (patch) | |
tree | c4e2e79980d6f6312322d44a28f6e87cb4be5669 /src | |
parent | 053ed5bd91fe8b181cdc304b0b11c7f4e4ba2e9e (diff) | |
download | libssh-aef467ab4a01133c8d7fca1a48144f72d9bb0124.tar.gz libssh-aef467ab4a01133c8d7fca1a48144f72d9bb0124.tar.xz libssh-aef467ab4a01133c8d7fca1a48144f72d9bb0124.zip |
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@xiaomi.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
Change-Id: I6cba2d4fea131f13d028226023da692494caa87d
Diffstat (limited to 'src')
-rw-r--r-- | src/libmbedcrypto.c | 4 |
1 files 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; |