summaryrefslogtreecommitdiff
path: root/lib/gnutls_cipher.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2000-12-11 14:57:08 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2000-12-11 14:57:08 +0000
commit04253eee02de1da34e2961416b184a2fa6d3b5dd (patch)
tree4b6f24b06a26e17db0b84b41a1335c44b1c7c8ce /lib/gnutls_cipher.c
parent53511dbf37f03ba6cca482d11ca1e9cbb01191aa (diff)
downloadgnutls-04253eee02de1da34e2961416b184a2fa6d3b5dd.tar.gz
cleanups for gcc -Wall
Diffstat (limited to 'lib/gnutls_cipher.c')
-rw-r--r--lib/gnutls_cipher.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c
index 8672bf8b11..561aa38d88 100644
--- a/lib/gnutls_cipher.c
+++ b/lib/gnutls_cipher.c
@@ -26,6 +26,8 @@
#include "gnutls_algorithms.h"
#include "gnutls_hash_int.h"
#include "gnutls_cipher_int.h"
+#include "gnutls_plaintext.h"
+#include "debug.h"
int _gnutls_encrypt(GNUTLS_STATE state, char *data, size_t data_size,
uint8 ** ciphertext, ContentType type)
@@ -33,7 +35,7 @@ int _gnutls_encrypt(GNUTLS_STATE state, char *data, size_t data_size,
GNUTLSPlaintext *gtxt;
GNUTLSCompressed *gcomp;
GNUTLSCiphertext *gcipher;
- int total_length = 0, err, i;
+ int total_length = 0, err;
if (data_size == 0)
return 0;
@@ -81,9 +83,7 @@ int _gnutls_decrypt(GNUTLS_STATE state, char *ciphertext,
GNUTLSPlaintext *gtxt;
GNUTLSCompressed *gcomp;
GNUTLSCiphertext gcipher;
- int iterations, i;
- int err, ret;
- int total_length = 0;
+ int ret;
if (ciphertext_size == 0)
return 0;