-
Notifications
You must be signed in to change notification settings - Fork 476
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
110 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,18 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install valgrind | ||
- name: Setup Ubuntu wolfSSL | ||
if: matrix.os == 'ubuntu-latest' && matrix.crypto == 'wolfssl' | ||
run: | | ||
git clone https://github.com/wolfSSL/wolfssl | ||
cd wolfssl | ||
./autogen.sh | ||
./configure '--enable-srtp-kdf' '--enable-aesctr' '--enable-intelasm' '--enable-aesgcm-stream' | ||
make | ||
sudo make install | ||
sudo ldconfig | ||
cd .. | ||
- name: Setup Ubuntu NSS | ||
if: matrix.os == 'ubuntu-latest' && matrix.crypto == 'nss' | ||
run: sudo apt-get install libnss3-dev | ||
|
@@ -38,6 +52,18 @@ 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: | | ||
brew install autoconf automake libtool | ||
git clone https://github.com/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
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