Commit Graph

684 Commits

Author SHA1 Message Date
Jakob Unterwurzacher
b2943eeed1 tests: Move helper funtion to common.inc
Also fixes md5fh's fd leak.
2014-11-17 00:32:54 +01:00
Jakob Unterwurzacher
1227df72e2 Add function descriptions to BlockFileIO 2014-11-10 23:15:29 +01:00
Jakob Unterwurzacher
7565fb149a Add comments documenting the filesystem config options 2014-11-09 13:59:35 +01:00
Jakob Unterwurzacher
00811625cf Add comments describing the config load functions 2014-11-09 13:58:33 +01:00
Jakob Unterwurzacher
5d3b246a0d V6SubVersion: Add comment explaining that the effective version is 20
..for boost 1.42+.

Note that RHEL 6 uses boost 1.41, so there may still be a few users
that are not running 1.42+.
2014-11-09 13:08:39 +01:00
Jakob Unterwurzacher
0053cd7a70 Actually print error message in withCipherPath and withFileNode 2014-11-09 12:40:39 +01:00
Jakob Unterwurzacher
cc274dca63 Exit on corrupt config file instead of overwriting it
This is something that should really not happen, it makes
sense to have the user examine the situation himself.

Behavoir was:

	23:00:42 (FileUtils.cpp:379) Archive exception: XML start/end tag mismatch - uniqueIV
	23:00:42 (FileUtils.cpp:337) Found config file /tmp/a/ciphertext/.encfs6.xml, but failed to load
	Creating new encrypted volume.
	Please choose from one of the following options:
	...

Now it exits with:

	23:13:04 (FileUtils.cpp:337) Found config file /tmp/a/ciphertext/.encfs6.xml, but failed to load - exiting
2014-11-05 21:34:30 +01:00
Jakob Unterwurzacher
8efda5b700 tests: Check that absolute symlinks work in reverse mode 2014-11-04 23:08:33 +01:00
Felix Janda
4a2c53a4f9 encfs/encfsctl.cpp: add missing #include <limits.h> 2014-11-01 08:22:45 +01:00
Felix Janda
8034da6a59 Use sys/xattr.h instead of attr/xattr.h by default 2014-11-01 08:22:10 +01:00
Valient Gough
8ae9282efe fix uninitialized memory error in tests 2014-10-26 15:10:28 -07:00
Valient Gough
8d515fda07 show verbose output for failed test 2014-10-26 14:50:43 -07:00
Valient Gough
264f3735d9 fix clang warning 2014-10-26 11:59:20 -07:00
Valient Gough
766564b55f return 1 on failure 2014-10-26 11:58:03 -07:00
Valient Gough
1afc12975b test with both gcc and clang 2014-10-26 11:35:56 -07:00
Valient Gough
b3355962ee rewrite C++11 check to look for basic classes 2014-10-26 11:35:52 -07:00
Valient Gough
01d409b2d7 add config macro to check for c++11 support 2014-10-26 11:02:13 -07:00
Valient Gough
14b228d185 rework fuse version check 2014-10-26 10:50:10 -07:00
Valient Gough
fe4300a53e reduce boost dependency 2014-10-26 10:49:51 -07:00
Valient Gough
19aba9fa77 reduce boost dependencies
enables c++11 mode on GCC
also fix soft links to root paths in reverse mode
2014-10-26 10:23:10 -07:00
Valient Gough
73ea32c2c2 Merge pull request #25 from rfjakob/master
Merge bash tests into Perl infrastructure
2014-10-22 23:15:23 -07:00
Jakob Unterwurzacher
7e03b6d2c5 tests: Add reverse mode tests 2014-10-21 22:13:36 +02:00
Jakob Unterwurzacher
b696f87ace README.md: Mention EncFS unique features 2014-10-20 21:16:40 +02:00
Jakob Unterwurzacher
6adc1e4a8f tests: Always run unit tests 2014-10-20 20:55:13 +02:00
Jakob Unterwurzacher
0e8e1dd20c tests: Move perl tests to tests/, make them callable from top-level Makefile
Use "make test" or "make test-verbose" to run.
Note that "make test" seems to be more common than "make tests", hence the
change.

Also, use a new clean directory directory as a working area for each run
Created using mkdtemp and deleted in cleanup()
2014-10-20 20:55:02 +02:00
Jakob Unterwurzacher
38970c75bd tests: Port bash tests to perl
This integrates the tests written in bash into the existing perl infrastructure.
2014-10-20 20:46:29 +02:00
Jakob Unterwurzacher
d9c7d52b89 tests: Fix fusermount detection in tests.t
Used to fail with

	Unsuccessful stat on filename containing newline at tests.t line 196.
	umount: /tmp/crypt-11388: Permission denied
	not ok 44 - unmount ok, mount point removed
	#   Failed test 'unmount ok, mount point removed'
	#   at tests.t line 205

now all tests pass.
2014-10-20 20:46:29 +02:00
Valient Gough
3b5035893d switch build status icon to vgough/encfs 2014-10-18 21:20:58 -07:00
Valient Gough
b3c851982f reformat using clang 2014-10-18 19:19:33 -07:00
Valient Gough
744f56b95d Merge pull request #23 from rfjakob/master
Add integration tests & Compare MACs in constant time
2014-10-17 13:58:42 -07:00
Jakob Unterwurzacher
87fac6af57 Compare MACs in constant time to prevent timing attacks
Fixes bug #12.
2014-10-17 19:42:06 +02:00
Jakob Unterwurzacher
8bda1c8a46 tests: Add integration tests
Add a simple cli-based test infrastructure with a few tests
to prepare future code changes.
Note that these cannot be run on Travis CI as it does not support
FUSE.

Expected output:

	$ tests/run.sh
	1 Running unit tests: OK
	*** running test_corruption.sh
	2 Reading file: OK
	3 Reading corrupted file: OK
	4 Reading file with MAC: OK
	5 Corruption with MAC returns IO error: OK
	*** running test_file_expansion.sh
	6 Creating files of different sizes: : OK
	7 Growing file: OK
	8 Internal modification: OK
	*** All tests OK
2014-10-17 19:41:21 +02:00
Valient Gough
4488ccf02b clarify comments on dev branch 2014-10-15 21:08:31 -07:00
Valient Gough
107f2a5fa6 Merge pull request #22 from rfjakob/master
Clean up autogenerated files & add automatic Travis CI testing
2014-10-15 20:55:21 -07:00
Jakob Unterwurzacher
7674edc13f Travis: Run self-tests after compile 2014-10-12 20:35:36 +02:00
Jakob Unterwurzacher
d09d344072 Add Travis CI config file and build status icon
At the moment, the icon points to rfjakob's Travis account.
This could/should be changed to vgough.
2014-10-12 19:18:27 +02:00
Jakob Unterwurzacher
61dc26fd8b Fix syntax error in encfsctl.pod (misplaced "=pod")
Error was:

	/usr/bin/pod2man --section=1 --release=1.7.5 --center="Encrypted Filesystem" encfsctl.pod encfsctl.1
	encfsctl.pod around line 1: =cut found outside a pod block.  Skipping to next block.
	POD document had syntax errors at /usr/bin/pod2man line 69.
	make[2]: *** [encfsctl.1] Error 255
2014-10-12 18:42:59 +02:00
Jakob Unterwurzacher
1c779f0221 Add .gitginore: Ignore files that are generated on build
A "git status" after building now comes back clean.
2014-10-12 18:36:50 +02:00
Jakob Unterwurzacher
b3da46c2a9 Remove autogenerated files
These are generated when running "autoreconf -if", no need to track
them in git.
2014-10-12 18:33:41 +02:00
Valient Gough
974b856741 add README.md 2014-08-21 19:46:43 -07:00
Valient Gough
0361c9558d Merge branch 'master' into 1.x 2014-08-21 19:34:19 -07:00
Valient Gough
59477525b3 add encfs combo image 2014-08-18 22:12:31 -07:00
Valient Gough
ad9db84cea reformat file for shorter lines 2014-07-24 23:58:51 -07:00
Valient Gough
401bb9e737 Update encfs.pod
Update encfs references to use pod markdown
2014-07-24 23:57:21 -07:00
Valient Gough
92ad2d0384 Merge pull request #1 from vgough/docs/encfs-update
Docs/encfs update
2014-07-24 23:54:30 -07:00
Valient Gough
723209aad2 Update README.md
update header
2014-07-24 23:51:56 -07:00
Valient Gough
556bc812b4 Create README.md
Add initial intro page.
2014-07-24 23:49:06 -07:00
Sam Gleske
712c242e30 doc: encfs add file-hole pass-through doc
Previously undocumented though file-hole pass-through has been
available in encfs since 1.4.1.
2014-07-25 00:20:19 -04:00
Sam Gleske
f377d34dff doc: encfs spelling and grammar corrections 2014-07-25 00:00:17 -04:00
Valient Gough
16b1cff29b update boost m4 macros
git-svn-id: http://encfs.googlecode.com/svn/branches/1.x@135 db9cf616-1c43-0410-9cb8-a902689de0d6
2013-12-03 06:50:52 +00:00