[minizip] Enable decrypt support for password-encrypted ZIP files. (#5010)

* Enable support for password-encrypted ZIP files.

* [minizip] combine patch with in vcpkg_from_github
This commit is contained in:
Eric Rosenquist 2019-01-16 13:52:33 -05:00 committed by Phil Christensen
parent 2011b8512b
commit 672ea9a1b3
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c
index f12e3329..bfc05f77 100644
--- a/contrib/minizip/unzip.c
+++ b/contrib/minizip/unzip.c
@@ -68,10 +68,6 @@
#include <stdlib.h>
#include <string.h>
-#ifndef NOUNCRYPT
- #define NOUNCRYPT
-#endif
-
#include "zlib.h"
#include "unzip.h"

View File

@ -10,6 +10,7 @@ vcpkg_from_github(
REF v1.2.11
SHA512 104c62ed1228b5f1199bc037081861576900eb0697a226cafa62a35c4c890b5cb46622e399f9aad82ee5dfb475bae26ae75e2bd6da3d261361b1c8b996970faf
HEAD_REF master
PATCHES minizip.patch # enable decrypt support for password-encrypted ZIP files
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})