forked from enlightenment/efl
parent
f2037c5c6f
commit
484f8c1083
|
@ -115,7 +115,6 @@ eet_identity_open(const char *certificate_file, const char *private_key_file, Ee
|
||||||
|
|
||||||
/* Reset values */
|
/* Reset values */
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
fd = -1;
|
|
||||||
fp = NULL;
|
fp = NULL;
|
||||||
data = NULL;
|
data = NULL;
|
||||||
load_file.data = NULL;
|
load_file.data = NULL;
|
||||||
|
@ -681,7 +680,6 @@ eet_cipher(const void *data, unsigned int size, const char *key, unsigned int le
|
||||||
|
|
||||||
/* Gcrypt close the cipher */
|
/* Gcrypt close the cipher */
|
||||||
gcry_cipher_close(cipher);
|
gcry_cipher_close(cipher);
|
||||||
opened = 0;
|
|
||||||
# else
|
# else
|
||||||
buffer = alloca(crypted_length);
|
buffer = alloca(crypted_length);
|
||||||
*buffer = tmp;
|
*buffer = tmp;
|
||||||
|
@ -702,9 +700,8 @@ eet_cipher(const void *data, unsigned int size, const char *key, unsigned int le
|
||||||
if (!EVP_EncryptFinal_ex(&ctx, ((unsigned char*)(ret + 1)) + tmp_len, &tmp_len))
|
if (!EVP_EncryptFinal_ex(&ctx, ((unsigned char*)(ret + 1)) + tmp_len, &tmp_len))
|
||||||
goto on_error;
|
goto on_error;
|
||||||
EVP_CIPHER_CTX_cleanup(&ctx);
|
EVP_CIPHER_CTX_cleanup(&ctx);
|
||||||
opened = 0;
|
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* Set return values */
|
/* Set return values */
|
||||||
if (result_length) *result_length = crypted_length + sizeof(unsigned int);
|
if (result_length) *result_length = crypted_length + sizeof(unsigned int);
|
||||||
if (result) *result = ret;
|
if (result) *result = ret;
|
||||||
|
|
Loading…
Reference in New Issue