mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 19:38:26 -06:00
Windows: update libzip to version 1.2.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
zip_get_encryption_implementation.c -- get encryption implementation
|
||||
Copyright (C) 2009-2014 Dieter Baron and Thomas Klausner
|
||||
Copyright (C) 2009-2016 Dieter Baron and Thomas Klausner
|
||||
|
||||
This file is part of libzip, a library to manipulate ZIP archives.
|
||||
The authors can be contacted at <libzip@nih.at>
|
||||
@@ -36,9 +36,21 @@
|
||||
|
||||
|
||||
zip_encryption_implementation
|
||||
_zip_get_encryption_implementation(zip_uint16_t em)
|
||||
_zip_get_encryption_implementation(zip_uint16_t em, int operation)
|
||||
{
|
||||
if (em == ZIP_EM_TRAD_PKWARE)
|
||||
switch (em) {
|
||||
case ZIP_EM_TRAD_PKWARE:
|
||||
if (operation == ZIP_CODEC_ENCODE) {
|
||||
return NULL;
|
||||
}
|
||||
return zip_source_pkware;
|
||||
return NULL;
|
||||
|
||||
case ZIP_EM_AES_128:
|
||||
case ZIP_EM_AES_192:
|
||||
case ZIP_EM_AES_256:
|
||||
return operation == ZIP_CODEC_DECODE ? zip_source_winzip_aes_decode : zip_source_winzip_aes_encode;
|
||||
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user