Commit Graph

139 Commits

Author SHA1 Message Date
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
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
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
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 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 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
Cedric BAIL 1e13a4aec2 Use eina conversion functions (Remove code from eet).
SVN revision: 36844
2008-10-20 09:44:34 +00:00
Cedric BAIL 6ee6cdeeb3 Correctly use ferror.
SVN revision: 36617
2008-10-13 12:09:31 +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
Cedric BAIL be3676ef9a Fix typo.
SVN revision: 35951
2008-09-11 14:07:02 +00:00
Cedric BAIL 1e0d00d4bd Use the right function here.
SVN revision: 35947
2008-09-11 11:25:15 +00:00
Cedric BAIL facaddde1f Ok, the patch didn't apply cleanly and some missed. Last lost change.
SVN revision: 35887
2008-09-08 11:53:59 +00:00
Cedric BAIL bbc107fc31 Another typo.
SVN revision: 35884
2008-09-08 11:17:04 +00:00
Cedric BAIL 114c50a297 Typo.
SVN revision: 35883
2008-09-08 11:11:51 +00:00
Cedric BAIL 46b7796946 Add signature support in eet.
You can use eet -s to sign a eet file and eet -c to check its signature. The
current code doesn't check any certificate trust path, only if the signature
match the certificate and that the certificate could be loaded. If that's not
the case, eet_open will fail. If the file is not signed, eet_open will just
continue to succeed.



SVN revision: 35882
2008-09-08 09:19:57 +00:00
Cedric BAIL 89be633ae4 Add the prototype for this long pending function in eet.
SVN revision: 35811
2008-09-03 13:52:45 +00:00
Cedric BAIL 27042fd8fc Recommit Joerg Sonnenberger patch with more fix.
When writing jpeg scanline, it wouldn't fail with FILE* as an output, but will
with a data buffer. So we need to re run the jpeg routine on this scanline. As I
don't know if the buffer is always preserved during two calls to the jpeg
library, I am copying it again.



SVN revision: 35804
2008-09-03 11:04:37 +00:00
Carsten Haitzler 6ffa97b1f5 roll back eet change (revert patch) as this breaks bsd and seems to cause
other issues for other people too (not me though)...



SVN revision: 35797
2008-09-03 01:34:53 +00:00
Cedric BAIL 8c7b666b6e Little bit modified patch from Joerg Sonnenberger that remove the need for
memfile.

It pass all the image test of the test suite with some little modification.
E seems to run fine with it and my apps also. But if you experience error
with eet and compressed picture, please report them to me.



SVN revision: 35795
2008-09-02 16:12:05 +00:00
Cedric BAIL 89911e0559 Fix two source of memory leak.
SVN revision: 35616
2008-08-22 14:35:21 +00:00
Cedric BAIL e3d6b72073 Fix a typo that prevent some valid file to be loaded.
SVN revision: 35584
2008-08-20 15:35:15 +00:00
Cedric BAIL c35c6bafa3 Delay unlink and reopen as long as possible in read/write mode.
SVN revision: 35462
2008-08-13 16:40:53 +00:00
Cedric BAIL 77bb260256 Improve decode speed by using precomputed hash.
SVN revision: 35140
2008-07-17 15:33:40 +00:00
Gustavo Sverzut Barbieri ed239be74a Check if file was really open before continue.
If we tried to create the new rw file, we must check if it was created
fine before continue, lots of errors are possible there, but mine was
creating the file inside an nonexistent directory.


SVN revision: 34928
2008-06-27 22:05:49 +00:00
Gustavo Sverzut Barbieri 83b37319b9 Initialize ef->writes_pending.
Valgrind just noticed that "writes_pending" was not being initialized,
probably because some old code used calloc() (based on the comment
at the allocation step).


SVN revision: 34777
2008-06-09 03:19:25 +00:00
Carsten Haitzler f153d22daf leak--
SVN revision: 34776
2008-06-09 03:07:35 +00:00
Carsten Haitzler 43821d36e4 * add efreet garbage data check
* remove printfs that clutter output
* add efreet file type check - only parse regular files
* chekc mmap returns correctly for MAP_FAILED results
* edje has some stubs for adding script-only objecvts - but nothing useful
right now


SVN revision: 34689
2008-05-29 02:00:04 +00:00
Cedric BAIL f89bed55e3 Disabling support of old eet file format was broken.
SVN revision: 34681
2008-05-27 13:50:40 +00:00
Cedric BAIL 09e1b5d7da Remove all use of strcpy as we already know the length.
SVN revision: 34617
2008-05-19 15:25:46 +00:00
Cedric BAIL 6226ef6b93 Old eet file format are now marked as deprecated. The plan is to let the
support enable by default for some time, then make desactivate it and finaly
we will remove it completely at some point.


SVN revision: 34616
2008-05-19 15:23:41 +00:00
Cedric BAIL d7cf02c1b5 Add some test around efn->offset and set it properly in all case.
SVN revision: 34590
2008-05-16 14:03:11 +00:00
Cedric BAIL ecda494197 Fix EET_FILE_MODE_READ_WRITE when file doesn't exist.
SVN revision: 34588
2008-05-16 10:00:54 +00:00
Carsten Haitzler 80c1db4f0c bitching--
SVN revision: 34236
2008-04-10 09:12:43 +00:00
doursse 5e7b84a40e cegcc (not mingw32ce) defines same structures, functions etc. in both in.h and winsock2.h. So do not include winsock2.h with that compiler
SVN revision: 34227
2008-04-09 08:27:17 +00:00
Kim Woelders 6b6110104c Add unistd.h for unlink(), comment out unused code.
SVN revision: 34182
2008-04-03 19:30:08 +00:00
doursse 741b44f6e2 remove trailing spaces and factorize Windows detection
SVN revision: 34135
2008-03-29 07:28:18 +00:00
Carsten Haitzler 4efdc2e78d add string.h
SVN revision: 34131
2008-03-28 17:29:22 +00:00
doursse 59a88b9bc8 reorganise header files so that evil is better included. Please test before the release.
SVN revision: 34130
2008-03-28 17:17:43 +00:00
Carsten Haitzler 42d262f5f3 up eet to alpha status. see email to e-devel.
SVN revision: 34127
2008-03-28 14:37:29 +00:00
Carsten Haitzler fcf201dea7 the rest of cedrics patchesfor fixing dictionaries and read_write
SVN revision: 33969
2008-03-09 16:16:40 +00:00
doursse bb32035399 * define EAPI on Windows according to the following scheme:
- if Eet is built:
     . if the shared lib is built, EAPI must be __declspec(dllexport)
     . if the static lib is built, EAPI must be empty
   - otherwise EAPI must be __declspec(dllimport)
 * move config.h from Eet_private.h to source files so that
   EAPI is correctly defined in Eet.h
 * add notes for compilation with cegcc and mingw32ce in INSTALL
 * add support for compilation with cegcc
 * add indentation information for vi
 * remove trailing spaces


SVN revision: 33959
2008-03-08 07:28:12 +00:00
doursse a3b06c3a70 * EAPI_DEF is actually useless. go back to EAPI
before using the correct way to deal with
   dllimport / dllexport on Windows
 * remove some trailing spaces


SVN revision: 33949
2008-03-07 09:59:37 +00:00
Carsten Haitzler b65d63440f add cedrics dict check patch
SVN revision: 33946
2008-03-06 17:52:59 +00:00
doursse c0414ae96c use evil on win32:
* remove all the specific win32 code
 * replace EAPI by EAPI_DEF in front of definitions of funtions
 * no need to check windows.h, winsock2.h
 * sys/mmap.h will be detected automatically (thanks to evil on win32)
 * use AC_CHECK_HEADERS instead of AC_CHECK_HEADERS_ONCE as this macro is too recent (from autoconf 2.59c)


SVN revision: 33896
2008-03-02 06:49:48 +00:00