diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-25 23:38:09 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-25 23:38:09 +0200 |
commit | 04b49d46c1410d115f58a80cf6832e6dc4393eb5 (patch) | |
tree | d5f332894df5ea3a8102e4f35d449496e477fc4d /libssh/wrapper.c | |
parent | 74b7fb7bbac618419e5e40a2df0beb2304aa84ad (diff) | |
download | libssh-04b49d46c1410d115f58a80cf6832e6dc4393eb5.tar.gz libssh-04b49d46c1410d115f58a80cf6832e6dc4393eb5.tar.xz libssh-04b49d46c1410d115f58a80cf6832e6dc4393eb5.zip |
Fixed building with Gcrypt and arith with void*
Diffstat (limited to 'libssh/wrapper.c')
-rw-r--r-- | libssh/wrapper.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |