summaryrefslogtreecommitdiff
path: root/legacy/eet
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2008-12-29 16:59:47 +0000
committerCedric BAIL <cedric.bail@free.fr>2008-12-29 16:59:47 +0000
commit484f8c1083f5fc01012267a6bbbb1d939f0b8a65 (patch)
treed4488d10911db7de0526e91f7158da234f6c949a /legacy/eet
parentf2037c5c6ff46e71c5fb122ce9a13de282d579ac (diff)
Remove useless affectation.
SVN revision: 38349
Diffstat (limited to 'legacy/eet')
-rw-r--r--legacy/eet/src/lib/eet_cipher.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/legacy/eet/src/lib/eet_cipher.c b/legacy/eet/src/lib/eet_cipher.c
index 1bd67b4add..1c77da7453 100644
--- a/legacy/eet/src/lib/eet_cipher.c
+++ b/legacy/eet/src/lib/eet_cipher.c
@@ -115,7 +115,6 @@ eet_identity_open(const char *certificate_file, const char *private_key_file, Ee
115 115
116 /* Reset values */ 116 /* Reset values */
117 fclose(fp); 117 fclose(fp);
118 fd = -1;
119 fp = NULL; 118 fp = NULL;
120 data = NULL; 119 data = NULL;
121 load_file.data = NULL; 120 load_file.data = NULL;
@@ -681,7 +680,6 @@ eet_cipher(const void *data, unsigned int size, const char *key, unsigned int le
681 680
682 /* Gcrypt close the cipher */ 681 /* Gcrypt close the cipher */
683 gcry_cipher_close(cipher); 682 gcry_cipher_close(cipher);
684 opened = 0;
685# else 683# else
686 buffer = alloca(crypted_length); 684 buffer = alloca(crypted_length);
687 *buffer = tmp; 685 *buffer = tmp;
@@ -702,9 +700,8 @@ eet_cipher(const void *data, unsigned int size, const char *key, unsigned int le
702 if (!EVP_EncryptFinal_ex(&ctx, ((unsigned char*)(ret + 1)) + tmp_len, &tmp_len)) 700 if (!EVP_EncryptFinal_ex(&ctx, ((unsigned char*)(ret + 1)) + tmp_len, &tmp_len))
703 goto on_error; 701 goto on_error;
704 EVP_CIPHER_CTX_cleanup(&ctx); 702 EVP_CIPHER_CTX_cleanup(&ctx);
705 opened = 0;
706
707# endif 703# endif
704
708 /* Set return values */ 705 /* Set return values */
709 if (result_length) *result_length = crypted_length + sizeof(unsigned int); 706 if (result_length) *result_length = crypted_length + sizeof(unsigned int);
710 if (result) *result = ret; 707 if (result) *result = ret;