mirror of
https://github.com/simon987/libscan.git
synced 2025-12-14 15:09:01 +00:00
Support for encrypted archives
This commit is contained in:
@@ -20,7 +20,7 @@ typedef struct {
|
|||||||
log_callback_t log;
|
log_callback_t log;
|
||||||
logf_callback_t logf;
|
logf_callback_t logf;
|
||||||
store_callback_t store;
|
store_callback_t store;
|
||||||
char passphrase[1024];
|
char passphrase[4096];
|
||||||
} scan_arc_ctx_t;
|
} scan_arc_ctx_t;
|
||||||
|
|
||||||
#define ARC_BUF_SIZE 8192
|
#define ARC_BUF_SIZE 8192
|
||||||
|
|||||||
@@ -602,8 +602,11 @@ TEST(Arc, EncryptedZip) {
|
|||||||
|
|
||||||
size_t size_before = store_size;
|
size_t size_before = store_size;
|
||||||
|
|
||||||
|
strcpy(arc_recurse_media_ctx.passphrase, "sist2");
|
||||||
parse_archive(&arc_recurse_media_ctx, &f, &doc);
|
parse_archive(&arc_recurse_media_ctx, &f, &doc);
|
||||||
|
|
||||||
|
arc_recurse_media_ctx.passphrase[0] = '\0';
|
||||||
|
|
||||||
ASSERT_NE(size_before, store_size);
|
ASSERT_NE(size_before, store_size);
|
||||||
|
|
||||||
cleanup(&doc, &f);
|
cleanup(&doc, &f);
|
||||||
|
|||||||
2
third-party/utf8.h
vendored
2
third-party/utf8.h
vendored
Submodule third-party/utf8.h updated: a67acc78fd...42f5b90d44
Reference in New Issue
Block a user