-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
96 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,14 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
crypto: [internal, openssl, nss] | ||
crypto: [internal, openssl, wolfssl, nss] | ||
include: | ||
- crypto: internal | ||
configure-crypto-enable: "" | ||
- crypto: openssl | ||
configure-crypto-enable: "--enable-openssl" | ||
- crypto: wolfssl | ||
configure-crypto-enable: "--enable-wolfssl" | ||
- crypto: nss | ||
configure-crypto-enable: "--enable-nss" | ||
|
||
|
@@ -30,6 +32,12 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install valgrind | ||
- name: Setup Ubuntu wolfSSL | ||
if: matrix.os == 'ubuntu-latest' && matrix.crypto == 'wolfssl' | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y libwolfssl-dev | ||
- name: Setup Ubuntu NSS | ||
if: matrix.os == 'ubuntu-latest' && matrix.crypto == 'nss' | ||
run: sudo apt-get install libnss3-dev | ||
|
@@ -38,6 +46,17 @@ jobs: | |
if: matrix.os == 'macos-latest' && matrix.crypto == 'openssl' | ||
run: echo "configure-env=PKG_CONFIG_PATH=$(brew --prefix [email protected])/lib/pkgconfig" >> $GITHUB_ENV | ||
|
||
- name: Setup macOS wolfSSL | ||
if: matrix.os == 'macos-latest' && matrix.crypto == 'wolfssl' | ||
run: | | ||
git clone [email protected]:wolfSSL/wolfssl | ||
cd wolfssl | ||
./autogen.sh | ||
./configure '--enable-srtp-kdf' '--enable-aesctr' '--enable-intelasm' '--enable-aesgcm-stream' | ||
make | ||
sudo make install | ||
cd .. | ||
- name: Setup macOS NSS | ||
if: matrix.os == 'macos-latest' && matrix.crypto == 'nss' | ||
run: brew install nss | ||
|
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 |
---|---|---|
|
@@ -14,10 +14,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
crypto: [internal, openssl, openssl3, nss, mbedtls] | ||
crypto: [internal, openssl, openssl3, wolfssl, nss, mbedtls] | ||
exclude: | ||
- os: windows-latest | ||
crypto: openssl | ||
- os: windows-latest | ||
crypto: wolfssl | ||
- os: windows-latest | ||
crypto: openssl3 | ||
- os: windows-latest | ||
|
@@ -33,6 +35,8 @@ jobs: | |
cmake-crypto-enable: "-DENABLE_OPENSSL=ON" | ||
- crypto: openssl3 | ||
cmake-crypto-enable: "-DENABLE_OPENSSL=ON" | ||
- crypto: wolfssl | ||
cmake-crypto-enable: "-DENABLE_WOLFSSL=ON" | ||
- crypto: nss | ||
cmake-crypto-enable: "-DENABLE_NSS=ON" | ||
- crypto: mbedtls | ||
|
@@ -44,6 +48,12 @@ jobs: | |
CTEST_OUTPUT_ON_FAILURE: 1 | ||
|
||
steps: | ||
- name: Setup Ubuntu wolfSSL | ||
if: matrix.os == 'ubuntu-latest' && matrix.crypto == 'wolfssl' | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y libwolfssl-dev | ||
- name: Setup Ubuntu NSS | ||
if: matrix.os == 'ubuntu-latest' && matrix.crypto == 'nss' | ||
run: | | ||
|
@@ -64,6 +74,17 @@ jobs: | |
brew install openssl@3 | ||
echo "cmake-crypto-dir=-DOPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> $GITHUB_ENV | ||
- name: Setup macOS wolfSSL | ||
if: matrix.os == 'macos-latest' && matrix.crypto == 'wolfssl' | ||
run: | | ||
git clone [email protected]:wolfSSL/wolfssl | ||
cd wolfssl | ||
./autogen.sh | ||
./configure '--enable-srtp-kdf' '--enable-aesctr' '--enable-intelasm' '--enable-aesgcm-stream' | ||
make | ||
sudo make install | ||
cd .. | ||
- name: Setup macOS NSS | ||
if: matrix.os == 'macos-latest' && matrix.crypto == 'nss' | ||
run: brew install nss | ||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
find_path(WOLFSSL_INCLUDE_DIRS wolfssl/ssl.h) | ||
|
||
find_library(WOLFSSL_LIBRARY wolfssl) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(wolfSSL DEFAULT_MSG | ||
WOLFSSL_LIBRARY WOLFSSL_INCLUDE_DIRS) | ||
|
||
mark_as_advanced(WOLFSSL_INCLUDE_DIRS WOLFSSL_LIBRARY) | ||
|
||
if(NOT TARGET wolfSSL) | ||
add_library(wolfSSL UNKNOWN IMPORTED) | ||
set_target_properties(wolfSSL PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${WOLFSSL_INCLUDE_DIRS}" | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${WOLFSSL_LIBRARY}") | ||
endif() | ||
|
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