Skip to content

Commit

Permalink
possible fixes for CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Apr 5, 2021
1 parent d5008a0 commit bcc2ffa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ add_global_arguments('-DNOCRYPT="1"', language : 'cpp')
add_global_arguments('-DNOUNCRYPT="1"', language : 'cpp')
add_global_arguments('-DQUAZIP_STATIC="1"', language : 'cpp')


add_global_arguments('-DNOCRYPT="1"', language : 'c')
add_global_arguments('-DNOUNCRYPT="1"', language : 'c')

#harcoded for now
moc_params = ['-DQT_VERSION=0x050000']
Expand Down
5 changes: 3 additions & 2 deletions zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,9 +1293,10 @@ extern int ZEXPORT zipOpenNewFileInZip4_64 (zipFile file, const char* filename,
unsigned int sizeHead;
zi->ci.encrypt = 1;
zi->ci.pcrc_32_tab = get_crc_table();
/*init_keys(password,zi->ci.keys,zi->ci.pcrc_32_tab);*/
// init_keys(password,zi->ci.keys,zi->ci.pcrc_32_tab);
if (crcForCrypting == 0) {
crcForCrypting = (uLong)zi->ci.dosDate << 16; /* ATTANTION! Without this row, you don't unpack your password protected archive in other app. */
crcForCrypting = (uLong)zi->ci.dosDate << 16; // ATTANTION! Without this row, you don't unpack your password protected archive in other app.
}
sizeHead=crypthead(password,bufHead,RAND_HEAD_LEN,zi->ci.keys,zi->ci.pcrc_32_tab,crcForCrypting);
zi->ci.crypt_header_size = sizeHead;
Expand Down

0 comments on commit bcc2ffa

Please sign in to comment.