Compare commits

..

5 Commits

Author SHA1 Message Date
gittiver
a6889fd0d7
Merge 2a33e41376 into 76965de11f 2024-07-14 13:39:15 +00:00
Gulliver
2a33e41376 removed cryptopp, openssl shall be used instead for blinding (but not implemented yet) 2024-07-14 15:38:55 +02:00
Gulliver
96d25a0a9a added test_crypto.cpp with first code for rsa blinding 2024-07-14 15:38:02 +02:00
Gulliver
f385ad9757 included crypto++ lib 2024-07-14 15:38:02 +02:00
Gulliver
76965de11f updated github flow with asio for newer crowcpp 2024-07-14 15:29:40 +02:00
3 changed files with 33 additions and 20 deletions

View File

@ -19,7 +19,9 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, macos-latest, windows-latest] os: [ubuntu-latest,
macos-latest,
windows-latest]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -28,14 +30,13 @@ jobs:
if [ "$RUNNER_OS" == "Linux" ]; then if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get update && \ sudo apt-get update && \
sudo apt-get install -yq \ sudo apt-get install -yq \
libboost-system-dev \ libasio-dev \
libboost-date-time-dev \ libssl-dev zlib1g-dev \
cmake \ cmake graphviz doxygen
graphviz doxygen
elif [ "$RUNNER_OS" == "Windows" ]; then elif [ "$RUNNER_OS" == "Windows" ]; then
choco install boost-msvc-14.3 graphviz doxygen.install VCPKG_DEFAULT_TRIPLET=x64-windows vcpkg install
elif [ "$RUNNER_OS" == "macOS" ]; then elif [ "$RUNNER_OS" == "macOS" ]; then
brew install boost graphviz doxygen brew install asio openssl zlib doxygen graphviz
else else
echo "$RUNNER_OS not supported" echo "$RUNNER_OS not supported"
exit 1 exit 1

View File

@ -1,8 +1,11 @@
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.15.0 FATAL_ERROR)
project(oc-issuer VERSION 0.0.2 LANGUAGES CXX)
enable_language(C) enable_language(C)
enable_language(CXX) enable_language(CXX)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS On)
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
if(POLICY CMP0077) if(POLICY CMP0077)
@ -15,7 +18,6 @@ else()
add_compile_options(-Wall -Wextra -pedantic) add_compile_options(-Wall -Wextra -pedantic)
endif() endif()
project(oc-issuer VERSION 0.0.2 LANGUAGES CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
@ -28,6 +30,7 @@ set(CROW_BUILD_EXAMPLES Off)
set(CROW_BUILD_TOOLS Off) set(CROW_BUILD_TOOLS Off)
set(CROW_BUILD_TESTS Off) set(CROW_BUILD_TESTS Off)
set(CROW_BUILD_DOCS Off) set(CROW_BUILD_DOCS Off)
set(CROW_FEATURES "ssl;compression")
# add crow project to the build # add crow project to the build
FetchContent_Declare(crow FetchContent_Declare(crow
@ -69,7 +72,7 @@ set(CATCH_INSTALL_EXTRAS Off)
FetchContent_Declare( FetchContent_Declare(
Catch2 Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.3.1 GIT_TAG v3.6.0
) )
FetchContent_MakeAvailable(Catch2) FetchContent_MakeAvailable(Catch2)

9
vcpkg.json Normal file
View File

@ -0,0 +1,9 @@
{
"name": "crow",
"version-string": "master",
"dependencies": [
"asio",
"openssl",
"zlib"
]
}