Cedric BAIL
bdea85040b
* eet: Add API to directly store Eet_Node inside and Eet_File.
...
SVN revision: 40107
2009-04-16 12:43:34 +00:00
Cedric BAIL
7dd4b42c85
* eet_node.c: Oops, add file to svn.
...
SVN revision: 40106
2009-04-16 12:42:03 +00:00
Cedric BAIL
b954d4dd49
* eet: Expose Eet_Node so we can now write external parser for eet_data. Still need
...
a way to retrieve an Eet_Node from an eet_data, perhaps some documentation and tests also.
SVN revision: 40105
2009-04-16 12:18:18 +00:00
Cedric BAIL
52c7896045
* eet: Add a faster way to compute signature. But currently need my pending patch to GnuTLS
...
(I need to sign and send this assigment paper) to be usefull.
SVN revision: 40104
2009-04-16 12:15:56 +00:00
Cedric BAIL
634df72c4a
* eet_data: Remove not used pointer.
...
SVN revision: 40035
2009-04-14 09:18:58 +00:00
Cedric BAIL
c392637d27
* eet_lib: Prevent double init of gcry.
...
SVN revision: 39716
2009-03-25 16:26:46 +00:00
Vincent Torri
c8702ccfa6
Fix compilation on OpenBSD (bug #251 ). Patch by eumel.
...
SVN revision: 39626
2009-03-22 13:37:17 +00:00
Cedric BAIL
0dcb98f55f
* eet_data: Make it thread safe and fix some memory leak.
...
SVN revision: 39590
2009-03-19 19:00:46 +00:00
Carsten Haitzler
f41991c662
disable fsync
...
SVN revision: 39542
2009-03-18 01:47:33 +00:00
Gustavo Sverzut Barbieri
3ca2a97471
make sure data is on disk, don't get empty files on ext4/ext3=writeback.
...
Ok, raster said it would not happen but just crashed my machine and
e.cfg was lost due ext4 being in writeback by default. Accordingly to
Theodore Ts'o
(http://thunk.org/tytso/blog/2009/03/15/dont-fear-the-fsync/ ) we
should fsync even on open-write-close+rename case.
SVN revision: 39536
2009-03-17 20:49:36 +00:00
Carsten Haitzler
a510f6a593
llvm complaint fix from Tiago Falcão
...
SVN revision: 39469
2009-03-13 16:12:24 +00:00
Cedric BAIL
bd0d413ffe
* eet/src/lib/eet_cipher.c: Report size as expected by API.
...
SVN revision: 39424
2009-03-09 15:52:14 +00:00
Cedric BAIL
970a2eb7bd
eet: Including two times the same header is useless in the best case.
...
SVN revision: 39334
2009-03-02 15:39:10 +00:00
Cedric BAIL
1d1335498c
eet: Fix memleak during cipher.
...
SVN revision: 39331
2009-03-02 14:43:57 +00:00
Gustavo Sverzut Barbieri
b95c69d2f5
Fix problem reported by clang.
...
TODO: we should review sign of length attributes and make them
consistent whenever possible.
By: Luis Felipe Strano Moraes
SVN revision: 39258
2009-02-26 22:14:14 +00:00
Vincent Torri
ca37104eb5
do not include unistd.h if vc++ is used
...
SVN revision: 39103
2009-02-19 20:31:21 +00:00
Vincent Torri
49f3d0134f
Include winsock2.h before time.h. Requested by vc++
...
SVN revision: 39102
2009-02-19 20:17:14 +00:00
Chidambar Zinnoury
0e36edbdfc
Add some missing unused flags.
...
SVN revision: 38987
2009-02-09 20:46:12 +00:00
Cedric BAIL
5f0475267c
* eet/src/lib/Eet.h,
...
* eet/src/lib/eet_lib.c,
* eet/src/lib/eet_cipher.c,
* eet/src/lib/Eet_private.h: Add a function to retrieve SHA1 of an associated Eet_File.
Note: Sadly GnuTLS doesn't seem to provide a gnutls_x509_crt_verify_hash function.
SVN revision: 38982
2009-02-09 13:53:20 +00:00
Chidambar Zinnoury
5b219a063c
Dead assignment. Reported by CLang.
...
SVN revision: 38970
2009-02-08 10:19:52 +00:00
Cedric BAIL
fa452d770d
* eet/src/lib/eet_cipher.c: Fix a corrupted pointer use.
...
SVN revision: 38856
2009-01-30 13:50:01 +00:00
Cedric BAIL
e678664d12
Remove dead debugging code.
...
SVN revision: 38352
2008-12-30 11:04:35 +00:00
Cedric BAIL
32dbc61034
Remove dead assignment.
...
SVN revision: 38351
2008-12-30 11:01:36 +00:00
Cedric BAIL
484f8c1083
Remove useless affectation.
...
SVN revision: 38349
2008-12-29 16:59:47 +00:00
Cedric BAIL
69f1a6a61e
Remove dead assignment and change condition for easier match.
...
SVN revision: 38344
2008-12-29 10:51:38 +00:00
Cedric BAIL
a1a421f5ca
Remove dead code detected by llvm static analyser.
...
SVN revision: 38343
2008-12-29 10:47:18 +00:00
Cedric BAIL
ee56641dc8
Remove unused variable and check error return.
...
SVN revision: 38342
2008-12-29 10:29:08 +00:00
Cedric BAIL
41a6b9d484
Check decompression error. Potential bug detected by llvm static analyser.
...
SVN revision: 38341
2008-12-29 09:39:03 +00:00
Cedric BAIL
3c1b5cfb3c
Fix documentation.
...
SVN revision: 38048
2008-12-09 13:02:44 +00:00
Cedric BAIL
9c381ceb1f
Better error handling with eet identity.
...
SVN revision: 37937
2008-12-05 09:42:06 +00:00
Cedric BAIL
bb9eeaa8f0
Add a function to get the raw signature data.
...
SVN revision: 37809
2008-11-26 10:45:47 +00:00
Cedric BAIL
febbf0ab0f
Make password callback work (PKCS8 support), fix minor bugs and add more tests.
...
SVN revision: 37625
2008-11-14 17:34:51 +00:00
Cedric BAIL
059a224215
Oops, forgot to commit this file. Crypto should now work.
...
SVN revision: 37614
2008-11-14 09:01:11 +00:00
Gustavo Sverzut Barbieri
ca1c7d5bfc
fix typo: cypher -> cipher
...
also reduce scope of ciphered and ciphered_len.
SVN revision: 37609
2008-11-13 20:49:18 +00:00
codewarrior
e66c00cad3
rename, build still doesnt work for gnutls.
...
SVN revision: 37604
2008-11-13 19:26:28 +00:00
Cedric BAIL
0f36b190f1
Add crypto support to eet.
...
GNUTLS support by Arnaud de Turckheim <quarium@gmail.com>.
SVN revision: 37603
2008-11-13 16:31:13 +00:00
Vincent Torri
f375b8fd4f
autotools cleanups:
...
* reorganize configure.ac
* select default opptions in configure.ac (disable openssl
for windows ce)
* fix Libs.private field and add Requires field in eep.pc
* rename eet.c.in to eet.dox.in
* use css file from other packages. Now the doc is correctly
displayd (need a rename of eet.css to e.css, though. will be
next commit)
SVN revision: 37114
2008-10-26 07:05:11 +00:00
Sebastian Dransfeld
d40f7ebacc
formatting
...
SVN revision: 37080
2008-10-24 21:47:10 +00:00
Cedric BAIL
d0fe4b4f3f
* Bug fix :
...
- Array layout would be broken or worse not possible to reload at all if you put NULL pointer in it.
- Array of string now work.
- Fix a double free issue with array on double load.
* Add the test to detect this case.
SVN revision: 37051
2008-10-24 14:06:40 +00:00
Cedric BAIL
04edb0cbec
* Fix Hash of String bug.
...
* Add a test case for it.
SVN revision: 37029
2008-10-23 14:41:04 +00:00
Cedric BAIL
5c096e9ddb
* Fix bug with string included in a list found by Viktor Kojouharov.
...
* Add a test case for that one.
Problem was simple type inlining in complex structure (like list/hash/array) is
just a hack. We are creating a subtype with the data chunk. That work with INT
or SHORT for example, but not with STRING because it's a pointer to a STRING and
not directly the STRING. This result in a double pointer dereferencing where it
shouldn't. In fact STRING is not really like other simple data type. So we
should handle it differently.
Still need to fix Array and Hash.
SVN revision: 37024
2008-10-23 13:12:33 +00:00
Cedric BAIL
002f0f2a6c
Strangely, Eet documentation was referencing Evas list, so switch
...
this to Eina list.
SVN revision: 36959
2008-10-22 08:59:14 +00:00
Cedric BAIL
1e13a4aec2
Use eina conversion functions (Remove code from eet).
...
SVN revision: 36844
2008-10-20 09:44:34 +00:00
Cedric BAIL
f08f865b75
Make eet depends on eina.
...
SVN revision: 36842
2008-10-20 09:17:00 +00:00
Vincent Torri
3e4465c4fa
* add m4 macro for documentation, unit tests and coverage
...
* put documentation related files in doc, remove gendoc and
add a doc rule to create the documentation and a doc tarball
named eet-doc-$(version).tar.bz2
* minor cleanup in the autotools
SVN revision: 36706
2008-10-16 08:41:40 +00:00
Cedric BAIL
6ee6cdeeb3
Correctly use ferror.
...
SVN revision: 36617
2008-10-13 12:09:31 +00:00
Cedric BAIL
4c0daa8810
Remove some more warning.
...
SVN revision: 36616
2008-10-13 11:58:24 +00:00
Cedric BAIL
2127e5c551
Remove more compiler warning.
...
SVN revision: 36614
2008-10-13 11:51:10 +00:00
Cedric BAIL
a3b343baa5
Fix memory leak with a proper shutdown of Openssl, thanks to Massimiliano Calamelli help.
...
SVN revision: 36095
2008-09-19 11:30:42 +00:00
Cedric BAIL
ac440b9533
Fix typo in the typo.
...
SVN revision: 35957
2008-09-11 14:49:47 +00:00