forked from pool/yubico-piv-tool
504faa7337
- update to 2.2.0: * ykpiv: Increased SO version * ykpiv: Fixed minor memory leaks * ykpiv: Improved error handling * ykpiv: Improved handling of PCSC card validation * ykcs11: Updated Cryptoki version * ykcs11: Support for CKM_ECDH1_DERIVE mechanism info * ykcs11: Support for destroying ECDH derived keys * ykcs11: Improved handling of PIN after device re-connection * ykcs11: Improved debug logging * cmd: Improved parsing of certificate Distinguished Name to allow an escape character * cmd: Warning to discourage generating RSA1024 keys * build: Use of platform standard installation path when building yubico-piv-tool * tests: Improved testing * Replaced building with autotool with building with cmake * Security update for YSA-2020-02 * ykpiv: Fixed potential memory leaks * ykpiv: Use PIN-protected MGMT key if the device is configured that way * ykpiv: Added attestation to CSR if requested * ykpiv: Fixed compatibility with LibreSSL * ykcs11: Improved handling of error codes * ykcs11: Improved handling of examples in the PKCS11 specifications * ykcs11: Added the possibility to have debug output as a runtime setting * ykcs11: Added support to unblock PIN with PUK * ykcs11: Make C_SetPIN backwards compatible while also allowing unblock PIN * tests: Improved tests - run tests - add pthread-link.patch OBS-URL: https://build.opensuse.org/request/show/875814 OBS-URL: https://build.opensuse.org/package/show/security/yubico-piv-tool?expand=0&rev=32
24 lines
938 B
Diff
24 lines
938 B
Diff
Index: yubico-piv-tool-2.2.0/ykcs11/CMakeLists.txt
|
|
===================================================================
|
|
--- yubico-piv-tool-2.2.0.orig/ykcs11/CMakeLists.txt
|
|
+++ yubico-piv-tool-2.2.0/ykcs11/CMakeLists.txt
|
|
@@ -60,6 +60,9 @@ if(${ENABLE_HARDWARE_TESTS})
|
|
set(HW_TESTS 1)
|
|
endif(${ENABLE_HARDWARE_TESTS})
|
|
|
|
+set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
+find_package(Threads REQUIRED)
|
|
+
|
|
# static library
|
|
if(BUILD_STATIC_LIB)
|
|
add_library(ykcs11 STATIC ${SOURCE})
|
|
@@ -73,7 +76,7 @@ endif(BUILD_STATIC_LIB)
|
|
|
|
# dynamic library
|
|
add_library(ykcs11_shared SHARED ${SOURCE})
|
|
-target_link_libraries(ykcs11_shared ${LIBCRYPTO_LDFLAGS} ykpiv_shared)
|
|
+target_link_libraries(ykcs11_shared ${LIBCRYPTO_LDFLAGS} ykpiv_shared Threads::Threads)
|
|
set_target_properties(ykcs11_shared PROPERTIES SOVERSION ${SO_VERSION} VERSION ${VERSION})
|
|
set_target_properties(ykcs11_shared PROPERTIES INSTALL_RPATH "${YKPIV_INSTALL_LIB_DIR}")
|
|
if(WIN32)
|