From 04b49d46c1410d115f58a80cf6832e6dc4393eb5 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 25 Sep 2009 23:38:09 +0200 Subject: Fixed building with Gcrypt and arith with void* --- libssh/wrapper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libssh/wrapper.c') diff --git a/libssh/wrapper.c b/libssh/wrapper.c index 3dd497f7..2dc67e1c 100644 --- a/libssh/wrapper.c +++ b/libssh/wrapper.c @@ -263,11 +263,11 @@ static int des3_1_set_key(struct crypto_struct *cipher, void *key, void *IV) { SAFE_FREE(cipher->key); return -1; } - if (gcry_cipher_setkey(cipher->key[1], key + 8, 8)) { + if (gcry_cipher_setkey(cipher->key[1], (unsigned char *)key + 8, 8)) { SAFE_FREE(cipher->key); return -1; } - if (gcry_cipher_setiv(cipher->key[1], IV + 8, 8)) { + if (gcry_cipher_setiv(cipher->key[1], (unsigned char *)IV + 8, 8)) { SAFE_FREE(cipher->key); return -1; } @@ -277,11 +277,11 @@ static int des3_1_set_key(struct crypto_struct *cipher, void *key, void *IV) { SAFE_FREE(cipher->key); return -1; } - if (gcry_cipher_setkey(cipher->key[2], key + 16, 8)) { + if (gcry_cipher_setkey(cipher->key[2], (unsigned char *)key + 16, 8)) { SAFE_FREE(cipher->key); return -1; } - if (gcry_cipher_setiv(cipher->key[2], IV + 16, 8)) { + if (gcry_cipher_setiv(cipher->key[2], (unsigned char *)IV + 16, 8)) { SAFE_FREE(cipher->key); return -1; } -- cgit