From 929a563c81b3ca2c8376826450428972094cedc0 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Tue, 16 May 2023 12:17:15 +0300 Subject: [PATCH] Make OpenSSL 3.0.8 as default (#1081) IB-7377 Signed-off-by: Raul Metsma --- .github/workflows/build.yml | 6 +++--- client/CMakeLists.txt | 8 ++++---- prepare_osx_build_environment.sh | 19 ++++--------------- qdigidoc4.wxs | 4 ++-- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d085b3062..57c34ef7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -170,12 +170,12 @@ jobs: uses: lukka/run-vcpkg@v7 with: vcpkgArguments: openssl - vcpkgGitCommitId: a69b65229b3956b7f45abd81671b7330114bcaad + vcpkgGitCommitId: 9b9c2758ece1d8ac0de90589730bb5ccf45c0874 vcpkgTriplet: x64-windows - name: Install Qt - uses: jurplel/install-qt-action@v3 + uses: jurplel/install-qt-action@v2 with: - version: 6.4.3 + version: 6.5.0 arch: win64_msvc2019_64 modules: qt5compat - name: Setup dev env diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 04dce3af3..c9efde45c 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -180,9 +180,9 @@ if( APPLE ) COMMAND find $/Frameworks -name Headers | xargs rm -rf COMMAND install_name_tool -delete_rpath /Library/Frameworks $ COMMAND ln -sf digidocpp.framework/Libraries/libcrypto.dylib - $/Frameworks/libcrypto.1.1.dylib + $/Frameworks/libcrypto.3.dylib COMMAND ln -sf digidocpp.framework/Libraries/libssl.dylib - $/Frameworks/libssl.1.1.dylib + $/Frameworks/libssl.3.dylib ) add_custom_target(codesign DEPENDS ${PROJECT_NAME} @@ -264,8 +264,8 @@ elseif(WIN32) COMMAND ${CMAKE_COMMAND} -E copy AppxManifest.xml appx COMMAND ${CMAKE_COMMAND} -E copy $ appx COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/qt.conf appx - COMMAND ${CMAKE_COMMAND} -E copy ${LIBS_PATH}/libcrypto-1_1${OPENSSL_SUFFIX}.dll appx - COMMAND ${CMAKE_COMMAND} -E copy ${LIBS_PATH}/libssl-1_1${OPENSSL_SUFFIX}.dll appx + COMMAND ${CMAKE_COMMAND} -E copy ${LIBS_PATH}/libcrypto-3${OPENSSL_SUFFIX}.dll appx + COMMAND ${CMAKE_COMMAND} -E copy ${LIBS_PATH}/libssl-3${OPENSSL_SUFFIX}.dll appx COMMAND ${CMAKE_COMMAND} -E copy ${LIBS_PATH}/zlib1.dll appx COMMAND ${CMAKE_COMMAND} -E copy ${LIBS_PATH}/xerces-c_3_2.dll appx COMMAND ${CMAKE_COMMAND} -E copy ${LIBS_PATH}/XalanMessages_1_12.dll appx diff --git a/prepare_osx_build_environment.sh b/prepare_osx_build_environment.sh index 0e41bdd9d..55ffaad92 100755 --- a/prepare_osx_build_environment.sh +++ b/prepare_osx_build_environment.sh @@ -4,8 +4,8 @@ set -e ######### Versions of libraries/frameworks to be compiled -QT_VER="6.4.2" -OPENSSL_VER="1.1.1t" +QT_VER="6.5.0" +OPENSSL_VER="3.0.8" OPENLDAP_VER="2.6.4" REBUILD=false BUILD_PATH=~/cmake_builds @@ -77,19 +77,8 @@ if [[ ! -d ${OPENSSL_PATH} ]] ; then rm -rf openssl-${OPENSSL_VER} tar xf openssl-${OPENSSL_VER}.tar.gz cd openssl-${OPENSSL_VER} - - sed -ie 's!, "apps"!!' Configure - sed -ie 's!, "fuzz"!!' Configure - sed -ie 's!, "test"!!' Configure for ARCH in x86_64 arm64; do - case "${ARCH}" in - *x86_64*) - CC="" CFLAGS="" MACHINE=x86_64 KERNEL_BITS=64 ./config --prefix=${OPENSSL_PATH} shared no-hw no-engine no-tests enable-ec_nistp_64_gcc_128 - ;; - *arm64*) - CC="" CFLAGS="" MACHINE=arm64 KERNEL_BITS=64 ./config --prefix=${OPENSSL_PATH} shared no-hw no-engine no-tests enable-ec_nistp_64_gcc_128 - ;; - esac + ./Configure darwin64-${ARCH} --prefix=${OPENSSL_PATH} shared no-autoload-config no-module no-engine no-tests enable-ec_nistp_64_gcc_128 make -s > /dev/null make install_sw mv ${OPENSSL_PATH} ${OPENSSL_PATH}.${ARCH} @@ -97,7 +86,7 @@ if [[ ! -d ${OPENSSL_PATH} ]] ; then done cp -a ${OPENSSL_PATH}.x86_64 ${OPENSSL_PATH} cd ${OPENSSL_PATH}.arm64 - for i in lib/lib*1.1.dylib; do + for i in lib/lib*3.dylib; do lipo -create ${OPENSSL_PATH}.x86_64/${i} ${i} -output ${OPENSSL_PATH}/${i} done cd - diff --git a/qdigidoc4.wxs b/qdigidoc4.wxs index d15e79063..5f2970aff 100644 --- a/qdigidoc4.wxs +++ b/qdigidoc4.wxs @@ -144,8 +144,8 @@ msiexec /a libdigidocpp-3.13.8.1378.msi /qn TARGETDIR=C:\target - - + +