aboutsummaryrefslogtreecommitdiff
path: root/src/libcrypto.c
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-07-25 12:01:16 +0200
committerJakub Jelen <jjelen@redhat.com>2019-07-30 16:19:32 +0200
commite42d44e48a913a03e42d45063718fa5a77c58b8d (patch)
tree621e0a8a0bfa17afb9feabf685b0c924e9ff39ec /src/libcrypto.c
parent683096ae7eb19cd02043222c700921cb6a0ec788 (diff)
downloadlibssh-e42d44e48a913a03e42d45063718fa5a77c58b8d.tar.gz
libssh-e42d44e48a913a03e42d45063718fa5a77c58b8d.tar.xz
libssh-e42d44e48a913a03e42d45063718fa5a77c58b8d.zip
libcrypto: Avoid incompatible pointers
Fixes: T164 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/libcrypto.c')
-rw-r--r--src/libcrypto.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcrypto.c b/src/libcrypto.c
index 24ef07d3..9ef00cb7 100644
--- a/src/libcrypto.c
+++ b/src/libcrypto.c
@@ -686,8 +686,12 @@ static int aes_ctr_set_key(struct ssh_cipher_struct *cipher, void *key,
return SSH_OK;
}
-static void aes_ctr_encrypt(struct ssh_cipher_struct *cipher, void *in, void *out,
- unsigned long len) {
+static void
+aes_ctr_encrypt(struct ssh_cipher_struct *cipher,
+ void *in,
+ void *out,
+ size_t len)
+{
unsigned char tmp_buffer[AES_BLOCK_SIZE];
unsigned int num=0;
/* Some things are special with ctr128 :