Michihiro NAKAJIMA
86b9097ea1
Fix a lack of definitions for OpenSSL library on CMake build system.
2014-10-14 21:09:38 +09:00
Michihiro NAKAJIMA
6838f150f9
Fix build failure without cryptography library.
2014-10-14 20:41:51 +09:00
Michihiro NAKAJIMA
6203b0e67b
Fix build failure with gcc.
2014-10-13 23:30:23 +09:00
Michihiro NAKAJIMA
1052c76567
Fix CMake warnings on Mac OS X.
2014-10-13 23:04:26 +09:00
Michihiro NAKAJIMA
c62d30e5fa
Avoid CMake Warning that used GET_TARGET_PROPERTY with LOCATION property,
...
so we should use $<TARGET_FILE> expression instead.
2014-10-13 22:02:39 +09:00
Michihiro NAKAJIMA
d052eea055
Merge pull request #85 from purpleKarrot/master
...
Fix int32_t in config.h.in
2014-10-13 18:15:05 +09:00
Michihiro NAKAJIMA
d9422ef8a5
Use archive_random() function instead of rand() function.
2014-10-13 18:03:30 +09:00
Michihiro NAKAJIMA
d095d6a488
Fix test failure without zlib.
2014-10-13 17:03:59 +09:00
Michihiro NAKAJIMA
481b432ec1
Fix build failure without zlib.
2014-10-13 16:49:46 +09:00
Michihiro NAKAJIMA
b327f90c78
Implement readpassphrase function, which read a passphrase from console, on Windows.
2014-10-13 16:25:28 +09:00
Michihiro NAKAJIMA
178bf9b890
Implement HMAC, PBKDF2 and AES support on Windows using CNG for
...
Zip encryption and decryption.
2014-10-13 14:41:21 +09:00
Michihiro NAKAJIMA
982da0b489
Fix build failure with zlib on Windows.
2014-10-13 11:31:14 +09:00
Michihiro NAKAJIMA
8c7a1fde86
Plug memory leak made by my recent changes.
2014-10-12 14:38:38 +09:00
Michihiro NAKAJIMA
f966682a86
Fix style.
2014-10-12 14:36:28 +09:00
Michihiro NAKAJIMA
78743ea72e
Fix typo.
2014-10-12 14:25:31 +09:00
Michihiro NAKAJIMA
b1aafbf82e
Include stdlib.h to avoid build failure on Windows.
2014-10-12 14:10:58 +09:00
Michihiro NAKAJIMA
15bcb67859
Fix build failure on Windows.
...
- Visual Studio does not provide unistd.h
- Visual Studio does not provide getopt
- Increase portability
2014-10-12 14:10:45 +09:00
Michihiro NAKAJIMA
359f8c0a35
Fix build failure on Windows.
...
- MSC does not allow this statement, char buf[static 10U].
- Use archive_string utility instead of snprintf.
- Use gmtime_r or _gmtime64_s if available for thread safe.
2014-10-12 13:30:20 +09:00
Michihiro NAKAJIMA
398c8033e3
Fix build failure on Windows.
...
- Apply cast statement
- Do not use snprintf directly
- Use ARCHIVE_LITERALL_LL macro for portability
2014-10-12 13:10:47 +09:00
Michihiro NAKAJIMA
7f875fa28d
Fix build failure on Windows.
2014-10-12 10:50:09 +09:00
Michihiro NAKAJIMA
58068be0d4
Avoid code analyzer error.
2014-10-05 10:37:49 +09:00
Michihiro NAKAJIMA
bd7d2b8d93
Fix the potential of memory leaks in our test suit, which
...
Xcode Analyzer pointed out.
2014-10-05 10:12:04 +09:00
Michihiro NAKAJIMA
39e4f2caee
Fix the potential of memory leaks in our test suit.
2014-10-05 00:56:47 +09:00
Michihiro NAKAJIMA
b7074cd33a
Remove unneeded length check to avoid the potential of a dereference of
...
null pointer.
2014-10-05 00:16:04 +09:00
Michihiro NAKAJIMA
e352977de0
Remove unneeded code.
2014-10-05 00:16:04 +09:00
Michihiro NAKAJIMA
6002e4603a
Fix the potential of a dereference of null pointer.
2014-10-05 00:15:45 +09:00
Michihiro NAKAJIMA
c5f2b0db37
Remove unneeded null check.
2014-10-04 23:54:26 +09:00
Michihiro NAKAJIMA
c966ff4b19
Correct detecting iconv liberary with Clang.
2014-10-04 23:27:37 +09:00
Michihiro NAKAJIMA
c9dc6b8146
Add tests for --passphrase option.
2014-10-04 19:33:46 +09:00
Michihiro NAKAJIMA
b5af190b7e
Do not ask passphrases when a passphrase was already specified with
...
--passphrase option.
2014-10-04 19:33:46 +09:00
Michihiro NAKAJIMA
25a4fdee72
Correct an archive object for set_reader_options function.
2014-09-23 09:20:18 +09:00
Michihiro NAKAJIMA
d057b953d9
Fix build failure on Ubuntu.
2014-09-21 18:36:45 +09:00
Michihiro NAKAJIMA
9769e6f7d5
Implement reading a passphrase from ttys.
2014-09-21 17:45:59 +09:00
Michihiro NAKAJIMA
96c3818109
Add a new API, archive_write_set_passphrase_callback, for encryption.
2014-09-21 15:00:45 +09:00
Michihiro NAKAJIMA
d42fdee258
Correctly set a terminator.
2014-09-21 09:30:38 +09:00
Michihiro NAKAJIMA
c4c6533b26
Fix detecting message digest functions.
...
This bug was caused by renaming archive_crypto.
2014-09-17 07:24:59 +09:00
Michihiro NAKAJIMA
9cf058eead
Merge pull request #91 from chenxiaolong/includes
...
Fix incorrect CMake test directory when building as a subproject
2014-09-16 22:34:43 +09:00
Michihiro NAKAJIMA
9616d9b7b9
Merge pull request #90 from chenxiaolong/mingw
...
Include windows.h in archive_entry.h
2014-09-16 22:19:33 +09:00
Michihiro NAKAJIMA
361600b992
Add --passphrase option to bsdtar and bsdcpio.
2014-09-16 22:11:00 +09:00
Michihiro NAKAJIMA
cf78910dda
Property handle __archive_read_next_passphrase function.
...
Return the same passphrase while the passphraes is passed
even if it was passed by a callback function.
2014-09-15 18:10:58 +09:00
Michihiro NAKAJIMA
04ba967880
Change digest functionarity files and relative global variables from
...
archive_crypto to archive_digest.
2014-09-15 14:50:54 +09:00
Michihiro NAKAJIMA
46f3d671ca
Split test_read_format_zip_filename to know what filename conversion
...
is tested or skipped.
2014-09-15 09:23:50 +09:00
Michihiro NAKAJIMA
98602cd9a1
Add test_archive_write_set_format_by_name_warc.
2014-09-15 09:05:28 +09:00
Michihiro NAKAJIMA
c06376f4f7
Add test_archive_write_add_filter_by_name_lz4.
2014-09-15 09:01:23 +09:00
Michihiro NAKAJIMA
59d9667803
Fix style.
2014-09-15 08:44:20 +09:00
Michihiro NAKAJIMA
0a2f3503c7
Merge pull request #88 from RyanLucchese/master
...
fixed hang in UUEncode filter
2014-09-15 08:24:09 +09:00
Michihiro NAKAJIMA
6aa121c75a
Merge pull request #89 from chenxiaolong/xxhash
...
Remove xxhash.h from CMakeLists.txt (fixes CMake build issue after 20d5451 )
2014-09-15 07:57:18 +09:00
Michihiro NAKAJIMA
d4b6894dcf
Skip encryption/decryption tests for WinZip AES if platform does not
...
provide PBKDF2 functionarity.
2014-09-14 22:38:27 +09:00
Michihiro NAKAJIMA
ce08c48484
Fix build failure on FreeBSD 9.2.
2014-09-14 22:27:45 +09:00
Michihiro NAKAJIMA
8267d66315
Fix build failure on Ubuntu.
2014-09-14 21:15:42 +09:00
Michihiro NAKAJIMA
3323ea2840
Switch passing passphrases from option framework to new APIs for
...
encryption and decryption.
2014-09-14 19:23:44 +09:00
Michihiro NAKAJIMA
6c222e59f4
Add new APIs that pass passphrases for reading and writing
...
encrypted archives.
2014-09-14 18:44:50 +09:00
Michihiro NAKAJIMA
abdce769f1
Document zip:encryption option.
...
Use 'zipcrypt' insted of 'traditional' for zip:encryption option.
2014-09-10 21:52:33 +09:00
Michihiro NAKAJIMA
2b5df3920c
Skip a test if the platform does not have cryptographic functionarity.
2014-09-10 07:29:06 +09:00
Michihiro NAKAJIMA
ea4701e7e5
Add support for WinZip AES encryption.
2014-09-09 22:40:33 +09:00
Michihiro NAKAJIMA
a35a8d3b24
Move cryptographic functions into archive_cryptor.c.
...
I will rename archive_crypto.c to archive_digest.c.
2014-09-09 22:40:23 +09:00
Michihiro NAKAJIMA
e317cc0ed2
Rename archive_hmac.h archive_hmac_private.h
2014-09-08 19:41:34 +09:00
Michihiro NAKAJIMA
da906f19fc
Make sure zip reader skips whole its contens.
2014-09-08 19:41:34 +09:00
Michihiro NAKAJIMA
de0a204ecc
Add support for traditional PKWARE encryption.
2014-09-08 19:41:34 +09:00
Michihiro NAKAJIMA
03b47ac01d
Fix decryption in streamable mode.
2014-09-08 19:41:28 +09:00
Michihiro NAKAJIMA
c199498b38
Fix comment. Do not use one line comment statement '//'
...
because some compiler does not recognize it.
2014-09-07 21:44:11 +09:00
Michihiro NAKAJIMA
e974088d16
Simply traditioal encryption api.
2014-09-07 21:44:11 +09:00
Michihiro NAKAJIMA
c3c366eb51
Add support for extracting WinZIp AES encryption.
2014-09-07 21:44:11 +09:00
Michihiro NAKAJIMA
8145520c0f
Add support for Traditional PKWARE decryption to zip reader.
2014-09-07 21:44:11 +09:00
Michihiro NAKAJIMA
bacaab4639
Fix build failure of xxhash on Ubuntu.
2014-09-07 21:44:10 +09:00
Michihiro NAKAJIMA
8a9e408d47
Style fix.
2014-09-07 21:44:10 +09:00
Michihiro NAKAJIMA
3d469df8ea
Fix issue 375: failure to read some larger .7z archives
...
Increase a maxinum entry limitation up to 100000000 from 1000000.
2014-08-31 20:40:32 +09:00
Michihiro NAKAJIMA
aecd3a2c3f
Add additional tests for lz4 compression in front-end applications.
2014-08-18 23:42:06 +09:00
Michihiro NAKAJIMA
f6b202b6e7
Add lz4 test for bsdcat.
...
- add test utility function canLz4()
- fix test_write_filter_lz4 to use canLz4()
2014-08-18 22:07:48 +09:00
Michihiro NAKAJIMA
c0d49db337
Document lz4 compression, lzop compression and other filters
...
which were not documented in archive_read_filter.3 or
archive_write_filter.3.
2014-08-14 21:57:44 +09:00
Michihiro NAKAJIMA
4e08992218
Improve lha decompression performance.
2014-08-14 21:31:44 +09:00
Michihiro NAKAJIMA
20d545194b
Update xxhash.c to lz4 r120 version;
...
o remove xxhash.h, which is unneeded in libarchive and causes
build failure for function definitions.
o convert single comment statements to block comment statements
because some C compiler cannot handle it.
2014-08-14 18:07:34 +09:00
Michihiro NAKAJIMA
ef2d83a5c9
Add lz4 filter entry to archive_read_append_filter function.
2014-08-14 17:11:41 +09:00
Michihiro NAKAJIMA
1d2939fd3d
Avoid an analyzer error "Dereference of null pointer",
...
which will not happen but analyzer claims.
2014-08-14 17:04:54 +09:00
Michihiro NAKAJIMA
1a0c03a5fa
Eliminate dead assignment.
2014-08-14 16:48:47 +09:00
Michihiro NAKAJIMA
7114aa40fb
Display filename encoding test names respectively to know what encoding test
...
was successful, failed or skipped.
2014-08-14 11:17:59 +09:00
Michihiro NAKAJIMA
d28e827ceb
Fix build failure on FreeBSD 8.x.
2014-08-14 10:35:43 +09:00
Michihiro NAKAJIMA
fc01297c23
Fix build failure with lz4 r120 and later.
2014-08-14 10:19:10 +09:00
Michihiro NAKAJIMA
8c4be28fe7
Add support for lz4 write filter.
2014-08-14 08:31:49 +09:00
Michihiro NAKAJIMA
7b759a662c
Properly set a error message when a client seeker callback is not
...
defined.
2014-08-03 15:08:41 +09:00
Michihiro NAKAJIMA
c0dd6ae5c5
Fix issue336:7zip can not be read when opened with archive_read_open_fd.
...
Implenent a seek callback in archive_read_open_fd by bringin the code
from archive_open_filename.
2014-08-03 14:56:40 +09:00
Michihiro NAKAJIMA
dabd6eb78d
Fix issue363:Unable to extract large 7z files.
...
Properly changing a variable type up to uint64_t.
2014-08-03 13:19:18 +09:00
Michihiro NAKAJIMA
14ac66073a
Simply finding a file name in mtree format to avoid redundant code.
2014-07-27 18:15:44 +09:00
Michihiro NAKAJIMA
bf4f6ec64e
Fix issue 356: properly skip a sparse file entry in a tar file.
2014-07-12 11:57:08 +09:00
Michihiro NAKAJIMA
07e5668348
Add lz4 detection for CMake configuration.
2014-07-06 13:40:53 +09:00
Michihiro NAKAJIMA
e58062c975
Style fix. space -> tab.
2014-07-06 13:10:26 +09:00
Michihiro NAKAJIMA
085130c376
Fix dereference of null pointer which Clang Static Analyser pointed out.
2014-07-06 12:57:47 +09:00
Michihiro NAKAJIMA
ae086fb263
Plug memory leaks which Clang Static Analyser pointed out.
2014-07-06 12:40:04 +09:00
Michihiro NAKAJIMA
96f3876ef4
Fix garbag return value which Clang Static Analyser pointed out.
2014-07-06 11:49:41 +09:00
Michihiro NAKAJIMA
30b0c5fe87
Fix dead store which Clang Static Analyser pointed out,
...
and some style changes. No functional changes.
2014-07-06 11:23:15 +09:00
Michihiro NAKAJIMA
3ce11df0af
Add a test for a bug fix of lha reader.
2014-07-03 20:58:51 +09:00
Michihiro NAKAJIMA
31272acaf4
Fix a bug in lha read format.
...
The bug was it could not correctly extract the compressed data
which had just one repated pattern.
2014-07-03 20:26:43 +09:00
Michihiro NAKAJIMA
cada9e9225
Properly set buffer,offset and size when lha format reader returns
...
ARCHIVE_WAR by getting CRC error.o
2014-07-02 21:12:42 +09:00
Michihiro NAKAJIMA
724f3f918e
Add support for lz4 read filter.
...
TODO: detecting liblz4 library by CMake.
2014-06-30 06:44:47 +09:00
Michihiro NAKAJIMA
44b869c872
Fix test_compat_mac failure on non-mac OS X platform.
...
It requries an option 'mac-ext' to pass the test
since commit 95e0b3a4f .
2014-06-29 19:51:28 +09:00
Michihiro NAKAJIMA
7c8c9b2729
Fix build failure on Ubuntu.
2014-06-29 18:09:26 +09:00
Michihiro NAKAJIMA
5ad9ecddb5
Fix builid failure on FreeBSD 10.
...
On FreeBSD 10, ENOTSUP and EOPNOTSUPP are the same value,
so it cannot be used in the same switch statement.
2014-06-29 17:16:20 +09:00
Michihiro NAKAJIMA
2b79319fe0
Fix a bug which uudecode filter wrongly decoded the uuencoded data
...
which size was more than 64K bytes.
2014-06-29 16:32:54 +09:00
Michihiro NAKAJIMA
41c37ee3fc
Add a test utility function, copy_reference_file simply coping
...
a sample file to the current directory of a running test.
A uudecode filter test will use it for its new test.
TODO: make a symbolic link file insted of copying a sample file.
Historically, libarchive cannot handle uuencoded files when
libarchive's test suit was made. Now libarchive can handle it
directly by uudecode filter, I think, we can reduce copying
sample files to the directory test program expects they are
on an isolated directory for their test.
2014-06-29 16:12:34 +09:00
Michihiro NAKAJIMA
fa6b6a41b1
Add bsdcat_test.log and bsdcat_test.trs to .gitignore.
2014-06-29 14:30:51 +09:00