diff options
author | Simon Josefsson <simon@josefsson.org> | 2004-08-15 20:33:47 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2004-08-15 20:33:47 +0000 |
commit | 0cf58a08dbed12db1202d317b4fd2432a3a58b7b (patch) | |
tree | 74dd17dd506c63874d1d362b42f92d41ad2f0d35 /lib/gnutls_cipher_int.c | |
parent | 62cc9fb80cbbdfe1834ffc39f7fe6a99e949f339 (diff) | |
download | gnutls-0cf58a08dbed12db1202d317b4fd2432a3a58b7b.tar.gz |
Fix warnings.
Diffstat (limited to 'lib/gnutls_cipher_int.c')
-rw-r--r-- | lib/gnutls_cipher_int.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_cipher_int.c b/lib/gnutls_cipher_int.c index 5841be7797..f47342ff96 100644 --- a/lib/gnutls_cipher_int.c +++ b/lib/gnutls_cipher_int.c @@ -68,9 +68,9 @@ cipher_hd_t _gnutls_cipher_init(gnutls_cipher_algorithm_t cipher, } if (err == 0) { - gc_cipher_setkey(ret, key->data, key->size); + gc_cipher_setkey(ret, key->size, key->data); if (iv->data != NULL && iv->size > 0) - gc_cipher_setiv(ret, iv->data, iv->size); + gc_cipher_setiv(ret, iv->size, iv->data); } else if (cipher != GNUTLS_CIPHER_NULL) { gnutls_assert(); _gnutls_x509_log("Crypto cipher[%d] error: %d\n", cipher, err); |