-
Notifications
You must be signed in to change notification settings - Fork 840
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged main into fix-conversion with conflict resolution
- Loading branch information
Showing
310 changed files
with
54,886 additions
and
8,155 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Coverity Scan master branch | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1-5' | ||
- cron: '0 0 * * 0' | ||
- cron: '0 12 * * 0' | ||
|
||
jobs: | ||
coverity: | ||
if: github.repository_owner == 'wolfssl' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
|
||
- name: Configure wolfSSL with enable-all M-F | ||
if: github.event.schedule == '0 0 * * 1-5' | ||
run: | | ||
./autogen.sh | ||
./configure --enable-all | ||
- name: Configure wolfSSL with enable-all enable-smallstack Sun at 00:00 | ||
if: github.event.schedule == '0 0 * * 0' | ||
run: | | ||
./autogen.sh | ||
./configure --enable-all --enable-smallstack | ||
- name: Configure wolfSSL with bigendian Sun at 12:00 | ||
if: github.event.schedule == '0 12 * * 0' | ||
run: | | ||
./autogen.sh | ||
./configure --enable-all CFLAGS="-DBIG_ENDIAN_ORDER" | ||
- name: Check secrets | ||
env: | ||
token_var: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
email_var: ${{ secrets.COVERITY_SCAN_EMAIL }} | ||
run: | | ||
token_len=${#token_var} | ||
echo "$token_len" | ||
email_len=${#email_var} | ||
echo "$email_len" | ||
- uses: vapier/coverity-scan-action@v1 | ||
with: | ||
build_language: 'cxx' | ||
project: "wolfSSL/wolfssl" | ||
token: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
email: ${{ secrets.COVERITY_SCAN_EMAIL }} | ||
command: "make" |
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
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
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,94 @@ | ||
name: SoftHSMv2 Tests | ||
|
||
# START OF COMMON SECTION | ||
on: | ||
push: | ||
branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# END OF COMMON SECTION | ||
|
||
jobs: | ||
build_wolfssl: | ||
name: Build wolfSSL | ||
if: github.repository_owner == 'wolfssl' | ||
# Just to keep it the same as the testing target | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Build wolfSSL | ||
uses: wolfSSL/actions-build-autotools-project@v1 | ||
with: | ||
path: wolfssl | ||
configure: --enable-all CFLAGS=-DRSA_MIN_SIZE=1024 | ||
install: true | ||
check: false | ||
|
||
- name: tar build-dir | ||
run: tar -zcf build-dir.tgz build-dir | ||
|
||
- name: Upload built lib | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wolf-install-softhsm | ||
path: build-dir.tgz | ||
retention-days: 5 | ||
|
||
softhsm_check: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# List of releases to test | ||
ref: [ 2.6.1 ] | ||
name: ${{ matrix.ref }} | ||
if: github.repository_owner == 'wolfssl' | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 20 | ||
needs: build_wolfssl | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
# Don't prompt for anything | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get update | ||
sudo apt-get install -y libcppunit-dev | ||
- name: Download lib | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wolf-install-softhsm | ||
|
||
- name: untar build-dir | ||
run: tar -xf build-dir.tgz | ||
|
||
- name: Checkout OSP | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: wolfssl/osp | ||
path: osp | ||
|
||
- name: Checkout SoftHSMv2 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: opendnssec/SoftHSMv2 | ||
path: softhsm | ||
ref: ${{ matrix.ref }} | ||
|
||
# Not using wolfSSL/actions-build-autotools-project@v1 because autogen.sh doesn't work | ||
- name: Build softhsm | ||
working-directory: softhsm | ||
run: | | ||
patch -p1 < $GITHUB_WORKSPACE/osp/softhsm/${{ matrix.ref }}.patch | ||
autoreconf -if | ||
./configure --with-crypto-backend=wolfssl WOLFSSL_INSTALL_DIR=$GITHUB_WORKSPACE/build-dir | ||
make -j | ||
- name: Test softhsm | ||
working-directory: softhsm | ||
run: make -j check |
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,58 @@ | ||
name: Windows CSharp Build Test | ||
|
||
on: | ||
push: | ||
branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
build: | ||
|
||
if: github.repository_owner == 'wolfssl' | ||
runs-on: windows-latest | ||
|
||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 6 | ||
|
||
env: | ||
# Path to the solution file relative to the root of the project. | ||
SOLUTION_FILE_PATH: wolfssl\wrapper\CSharp\wolfSSL_CSharp.sln | ||
|
||
# Configuration type to build. | ||
# You can convert this to a build matrix if you need coverage of multiple configuration types. | ||
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
BUILD_CONFIGURATION: Debug | ||
BUILD_PLATFORM: x64 | ||
|
||
steps: | ||
- name: Pull wolfssl | ||
uses: actions/checkout@master | ||
with: | ||
repository: wolfssl/wolfssl | ||
path: wolfssl | ||
|
||
- name: Create FIPS stub files (autogen) | ||
working-directory: wolfssl | ||
run: | | ||
echo $null >> wolfcrypt\src\fips.c | ||
echo $null >> wolfcrypt\src\fips_test.c | ||
echo $null >> wolfcrypt\src\wolfcrypt_first.c | ||
echo $null >> wolfcrypt\src\wolfcrypt_last.c | ||
- name: Add MSBuild to PATH | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Build | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
# Add additional options to the MSBuild command line here (like platform or verbosity level). | ||
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference | ||
run: msbuild /m /p:PlatformToolset=v142 /p:Platform=${{env.BUILD_PLATFORM}} /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} | ||
|
||
- name: Run wolfCrypt test | ||
working-directory: ${{env.GITHUB_WORKSPACE}}wolfssl\wrapper\CSharp\Debug\x64\ | ||
run: ./wolfCrypt-test.exe | ||
|
||
- name: Run wolfSSL client/server example | ||
working-directory: ${{env.GITHUB_WORKSPACE}}wolfssl\wrapper\CSharp\Debug\x64\ | ||
run: ./wolfSSL-TLS-Server.exe && sleep 1 & ./wolfSSL-TLS-Client.exe |
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
Oops, something went wrong.