version_needed = 20;
}
- if (zip->entry_flags | ZIP_ENTRY_FLAG_ENCRYPTED) {
+ if (zip->entry_flags & ZIP_ENTRY_FLAG_ENCRYPTED) {
switch (zip->entry_encryption) {
case ENCRYPTION_TRADITIONAL:
additional_size = TRAD_HEADER_SIZE;
version_needed = 20;
}
- if (zip->entry_flags | ZIP_ENTRY_FLAG_ENCRYPTED) {
+ if (zip->entry_flags & ZIP_ENTRY_FLAG_ENCRYPTED) {
switch (zip->entry_encryption) {
case ENCRYPTION_TRADITIONAL:
case ENCRYPTION_WINZIP_AES128:
e += 4;
/* AES extra data field: WinZIP AES information, ID=0x9901 */
- if ((zip->entry_flags | ZIP_ENTRY_FLAG_ENCRYPTED)
+ if ((zip->entry_flags & ZIP_ENTRY_FLAG_ENCRYPTED)
&& (zip->entry_encryption == ENCRYPTION_WINZIP_AES128
|| zip->entry_encryption == ENCRYPTION_WINZIP_AES256)) {
if (s == 0) return 0;
- if (zip->entry_flags | ZIP_ENTRY_FLAG_ENCRYPTED) {
+ if (zip->entry_flags & ZIP_ENTRY_FLAG_ENCRYPTED) {
switch (zip->entry_encryption) {
case ENCRYPTION_TRADITIONAL:
/* Initialize traditoinal PKWARE encryption context. */