diff options
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; } |