mirror of
				https://github.com/simon987/libscan.git
				synced 2025-10-31 17:36:53 +00:00 
			
		
		
		
	Support for encrypted archives
This commit is contained in:
		
							parent
							
								
									8212dd4b23
								
							
						
					
					
						commit
						4ea76adfaa
					
				| @ -20,7 +20,7 @@ typedef struct { | ||||
|     log_callback_t log; | ||||
|     logf_callback_t logf; | ||||
|     store_callback_t store; | ||||
|     char passphrase[1024]; | ||||
|     char passphrase[4096]; | ||||
| } scan_arc_ctx_t; | ||||
| 
 | ||||
| #define ARC_BUF_SIZE 8192 | ||||
|  | ||||
| @ -602,8 +602,11 @@ TEST(Arc, EncryptedZip) { | ||||
| 
 | ||||
|     size_t size_before = store_size; | ||||
| 
 | ||||
|     strcpy(arc_recurse_media_ctx.passphrase, "sist2"); | ||||
|     parse_archive(&arc_recurse_media_ctx, &f, &doc); | ||||
| 
 | ||||
|     arc_recurse_media_ctx.passphrase[0] = '\0'; | ||||
| 
 | ||||
|     ASSERT_NE(size_before, store_size); | ||||
| 
 | ||||
|     cleanup(&doc, &f); | ||||
|  | ||||
							
								
								
									
										2
									
								
								third-party/utf8.h
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
								
									
									
								
							
						
						
									
										2
									
								
								third-party/utf8.h
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | ||||
| Subproject commit a67acc78fd0fc272ad45362b828efdcb24874e64 | ||||
| Subproject commit 42f5b90d44571ef84b528555a72e819d5ed1f6c6 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user