forked from softhsm/SoftHSMv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diverse changes plus resolving merge conflict.
- replace ^M^L by normal line feed - keep using reentrant version of gmtime_r even though not really available under windows. - Reformatting, whitespacing, and removal of outdated commented out statements. - Keep tests even though not functional under windows. a.o. DeriveTests.testSymDerive ObjectTests.testCreateSecretKey SymmetricAlgorithmTests.CKM_AES_ECB-based - merge conflict parameter to encryptDecrypt - Use CPPUNIT_LIBRARIES iso. hardcoded CppUnit to keep linux cmake build working. - Replace CppUnit_INCLUDE_DIR by CPPUNIT_INCLUDE_DIRS - add_executable needs to be put befor list(APPEND SOURCES otherwise not known - reenable cmake test for sqlite.h - update cmake search script for cppunit and CPPUNIT_* variables - try appveyor test with x64 again, appveyor not rely on specifc vcpkg release, reenable tests and some shuffling sequence to first update then build - ECDSA by default on for cmake, only disable on windows - SoftHSM.cpp don't emit exception output to cerr. Merge remote-tracking branch 'upstream/develop' into HEAD
- Loading branch information
Showing
37 changed files
with
253 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,76 @@ | ||
# - try to find cppunit library | ||
# | ||
# http://root.cern.ch/viewvc/trunk/cint/reflex/cmake/modules/FindCppUnit.cmake | ||
# Cache Variables: (probably not for direct use in your scripts) | ||
# CPPUNIT_INCLUDE_DIR | ||
# CPPUNIT_LIBRARY | ||
# | ||
# - Find CppUnit | ||
# This module finds an installed CppUnit package. | ||
# Non-cache variables you might use in your CMakeLists.txt: | ||
# CPPUNIT_FOUND | ||
# CPPUNIT_INCLUDE_DIRS | ||
# CPPUNIT_LIBRARIES | ||
# | ||
# It sets the following variables: | ||
# CPPUNIT_FOUND - Set to false, or undefined, if CppUnit isn't found. | ||
# CPPUNIT_INCLUDE_DIR - The CppUnit include directory. | ||
# CPPUNIT_LIBRARY - The CppUnit library to link against. | ||
# Requires these CMake modules: | ||
# SelectLibraryConfigurations (included with CMake >= 2.8.0) | ||
# FindPackageHandleStandardArgs (known included with CMake >=2.6.2) | ||
# | ||
# Original Author: | ||
# 2009-2011 Ryan Pavlik <[email protected]> <[email protected]> | ||
# http://academic.cleardefinition.com | ||
# Iowa State University HCI Graduate Program/VRAC | ||
# | ||
# Copyright 2009-2011, Iowa State University | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt) | ||
# SPDX-License-Identifier: BSL-1.0 | ||
|
||
find_package(CppUnit CONFIG) | ||
set(CPPUNIT_ROOT_DIR | ||
"${CPPUNIT_ROOT_DIR}" | ||
CACHE | ||
PATH | ||
"Directory to search") | ||
|
||
if(NOT CPPUNIT_FOUND) | ||
pkg_check_modules(cppunit CPPUNIT_FOUND) | ||
endif() | ||
find_library(CPPUNIT_LIBRARY_RELEASE | ||
NAMES | ||
cppunit | ||
HINTS | ||
"${CPPUNIT_ROOT_DIR}") | ||
|
||
find_library(CPPUNIT_LIBRARY_DEBUG | ||
NAMES | ||
cppunitd | ||
HINTS | ||
"${CPPUNIT_ROOT_DIR}") | ||
|
||
include(SelectLibraryConfigurations) | ||
select_library_configurations(CPPUNIT) | ||
|
||
if(NOT CPPUNIT_FOUND) | ||
FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/Test.h) | ||
FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit) | ||
|
||
IF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARY) | ||
SET(CPPUNIT_FOUND TRUE) | ||
ENDIF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARY) | ||
|
||
IF (CPPUNIT_FOUND) | ||
# show which CppUnit was found only if not quiet | ||
IF (NOT CppUnit_FIND_QUIETLY) | ||
MESSAGE(STATUS "Found CppUnit: ${CPPUNIT_LIBRARY}") | ||
ENDIF (NOT CppUnit_FIND_QUIETLY) | ||
ELSE (CPPUNIT_FOUND) | ||
# fatal error if CppUnit is required but not found | ||
IF (CppUnit_FIND_REQUIRED) | ||
MESSAGE(FATAL_ERROR "Could not find CppUnit") | ||
ENDIF (CppUnit_FIND_REQUIRED) | ||
ENDIF (CPPUNIT_FOUND) | ||
# Might want to look close to the library first for the includes. | ||
get_filename_component(_libdir "${CPPUNIT_LIBRARY_RELEASE}" PATH) | ||
|
||
find_path(CPPUNIT_INCLUDE_DIR | ||
NAMES | ||
cppunit/TestCase.h | ||
HINTS | ||
"${_libdir}/.." | ||
PATHS | ||
"${CPPUNIT_ROOT_DIR}" | ||
PATH_SUFFIXES | ||
include/) | ||
|
||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(cppunit | ||
DEFAULT_MSG | ||
CPPUNIT_LIBRARY | ||
CPPUNIT_INCLUDE_DIR) | ||
|
||
if(CPPUNIT_FOUND) | ||
set(CPPUNIT_LIBRARIES ${CPPUNIT_LIBRARY} ${CMAKE_DL_LIBS}) | ||
set(CPPUNIT_INCLUDE_DIRS "${CPPUNIT_INCLUDE_DIR}") | ||
mark_as_advanced(CPPUNIT_ROOT_DIR) | ||
endif() | ||
|
||
mark_as_advanced(CPPUNIT_INCLUDE_DIR | ||
CPPUNIT_LIBRARY_RELEASE | ||
CPPUNIT_LIBRARY_DEBUG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.