diff options
author | Jonathan White <support@dmapps.us> | 2021-05-17 03:16:01 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2021-12-15 07:23:23 +0300 |
commit | 12990e59ada1628a3a491afef045902ef254e38f (patch) | |
tree | 40c7bbe9ede0bd5ea67b6aa417e0cc7dc55ccf3e /cmake | |
parent | c88d8c870fbbc1aaacc72975e046f0f777140145 (diff) |
KeeShare: Remove checking signed container
* Remove QuaZip dependency in favor of minizip
* Remove signature checks, but maintain signatures for backwards compatibility
* Remove UI components related to certificates except for personal certificate for backwards compatibility
* Default to unsigned containers (*.kdbx)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindMinizip.cmake | 9 | ||||
-rw-r--r-- | cmake/FindQuaZip.cmake | 24 |
2 files changed, 9 insertions, 24 deletions
diff --git a/cmake/FindMinizip.cmake b/cmake/FindMinizip.cmake new file mode 100644 index 000000000..a3817c960 --- /dev/null +++ b/cmake/FindMinizip.cmake @@ -0,0 +1,9 @@ +# MINIZIP_FOUND - Minizip library was found +# MINIZIP_INCLUDE_DIR - Path to Minizip include dir +# MINIZIP_LIBRARIES - List of Minizip libraries + +find_library(MINIZIP_LIBRARIES NAMES minizip libminizip) +find_path(MINIZIP_INCLUDE_DIR zip.h PATH_SUFFIXES minizip) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Minizip DEFAULT_MSG MINIZIP_LIBRARIES MINIZIP_INCLUDE_DIR) diff --git a/cmake/FindQuaZip.cmake b/cmake/FindQuaZip.cmake deleted file mode 100644 index 2242baca4..000000000 --- a/cmake/FindQuaZip.cmake +++ /dev/null @@ -1,24 +0,0 @@ -# QUAZIP_FOUND - QuaZip library was found -# QUAZIP_INCLUDE_DIR - Path to QuaZip include dir -# QUAZIP_INCLUDE_DIRS - Path to QuaZip and zlib include dir (combined from QUAZIP_INCLUDE_DIR + ZLIB_INCLUDE_DIR) -# QUAZIP_LIBRARIES - List of QuaZip libraries -# QUAZIP_ZLIB_INCLUDE_DIR - The include dir of zlib headers - -if(WIN32) - find_library(QUAZIP_LIBRARIES libquazip5) - find_path(QUAZIP_INCLUDE_DIR quazip.h PATH_SUFFIXES quazip5) - find_path(QUAZIP_ZLIB_INCLUDE_DIR zlib.h) -else() - find_library(QUAZIP_LIBRARIES - NAMES quazip5 quazip - PATHS /usr/lib /usr/lib64 /usr/local/lib - ) - find_path(QUAZIP_INCLUDE_DIR quazip.h - PATHS /usr/include /usr/local/include - PATH_SUFFIXES quazip5 quazip - ) - find_path(QUAZIP_ZLIB_INCLUDE_DIR zlib.h PATHS /usr/include /usr/local/include) -endif() -include(FindPackageHandleStandardArgs) -set(QUAZIP_INCLUDE_DIRS ${QUAZIP_INCLUDE_DIR} ${QUAZIP_ZLIB_INCLUDE_DIR}) -find_package_handle_standard_args(QUAZIP DEFAULT_MSG QUAZIP_LIBRARIES QUAZIP_INCLUDE_DIR QUAZIP_ZLIB_INCLUDE_DIR QUAZIP_INCLUDE_DIRS) |