Carsten Haitzler
a5747f1ab3
eet - be robust about garbage at the end that looks like an idenity
...
if there is an identity signaure at the end, ONLY check it if it looks
like a real one (correct magic number, cert and sig size fields are
sane etc.). this means eet opens dont fail for files that may have
trailing garbage or padding that is not an eet identity signature.
2015-10-07 17:50:18 +09:00
Carsten Haitzler
555f09009a
eet - fix emile changes to not leak in eet_cipher/deciper()
...
coverity spotted a missing binbuf free for the in binbuf created in
CID 1288921 and CID 1288920. this fixes both of these. leak. new.
2015-04-21 11:01:54 +09:00
Cedric BAIL
0e5686de73
eet: remove use of deprecated Eina_Binbuf functions.
2015-03-17 09:58:21 +01:00
Cedric BAIL
8f3ec959b9
emile: change the API to allow supporting other cipher in the future.
2015-03-17 09:58:19 +01:00
Cedric BAIL
97c703cdaf
eet: initialize emile on demand.
2015-03-17 09:58:17 +01:00
Cedric BAIL
a7d7cae0c4
eet: move to use emile for ciphering logic.
2015-03-17 09:58:17 +01:00
Cedric BAIL
b9db9ca2e3
Revert "eet: fix memory leak in eet_cipher"
...
This reverts commit d25d56758c
.
That patch was leading to double. Thanks ami for finding it.
2015-01-19 14:44:13 +01:00
kabeer khan
d25d56758c
eet: fix memory leak in eet_cipher
...
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
@fix
Reviewers: devilhorns
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D1799
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-22 11:55:48 +01:00
Daniel Willmann
1d8f06511c
eet_cipher: Fix initialization of opened variable
...
In the error case we 'goto' the error path directly without passing
through the declaration and initialization of the variable.
This doesn't work so move the declaration/initialization to the start.
See this example (compile with -Wall for the warning):
-----
#include <stdio.h>
int main(void)
{
goto bar;
int i = 15;
bar:
printf("Foo: %i\n", i);
return 0;
}
----
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-03-19 17:00:33 +00:00
Cedric Bail
3fe8098e9c
include some header files conditionally add specific test for fcntl
2013-03-11 10:34:47 +09:00
Cedric BAIL
55bc6a16fb
efl: fix endianness issue.
...
Patch by Albin Tonnerre <albin.tonnerre@gmail.com>.
SVN revision: 82743
2013-01-14 03:54:47 +00:00
Lucas De Marchi
06ff74834f
efl: remove checks for socket.h, net/*, arpa/*
...
SVN revision: 82585
2013-01-10 20:26:02 +00:00
Lucas De Marchi
db395ef7eb
efl: Remove check for unistd.h
...
* unistd.h: is very useful, very old and very standard.
SVN revision: 82577
2013-01-10 20:25:26 +00:00
Gustavo Sverzut Barbieri
0a2d116119
efl: eina_alloca.h to simplify alloca() usage.
...
having to replicate 18 lines per file just to access alloca() is
insane. Let's do that in Eina.h and avoid that crap :-/
SVN revision: 82082
2013-01-03 15:10:34 +00:00
Cedric BAIL
0d1b29e5e1
eet: fix memory leak with OpenSSL.
...
Reported by Leandro Santiago <leandrosansilva@gmail.com>.
SVN revision: 80648
2012-12-11 11:52:53 +00:00
Gustavo Sverzut Barbieri
511d8e8672
efl/eet: bumped requirement for gnutls >= 2.11 thus remove legacy code.
...
SVN revision: 80287
2012-12-05 23:44:45 +00:00
Vincent Torri
8abaff3bdf
merge: add eet
...
SVN revision: 76768
2012-09-17 16:35:38 +00:00