forked from wolfSSL/wolfssl
-
Notifications
You must be signed in to change notification settings - Fork 2
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
102 changed files
with
2,129 additions
and
898 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
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
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# ESP-IDF Port | ||
|
||
These Espressif examples have been created and tested with the latest stable release branch of | ||
[ESP-IDF v5.2](https://docs.espressif.com/projects/esp-idf/en/release-v5.2/esp32/get-started/index.html). | ||
The prior version 4.4 ESP-IDF is still supported, however version 5.1 or greater is recommended. | ||
Espressif has [a list of all ESP-IDF versions](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/versions.html). | ||
These Espressif examples have been created and tested with the latest stable release branch of | ||
ESP-IDF v5.2, v5.3 and the master branch | ||
|
||
See the latest [Espressif Migration Guides](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/index.html). | ||
The prior version 4.4 ESP-IDF is still supported, however version 5.2 or greater is recommended. | ||
Espressif has [a list of all ESP-IDF versions](Espressifversions.html). | ||
|
||
See the latest Espressif Migration Guides. | ||
|
||
## Examples | ||
|
||
|
@@ -34,7 +35,7 @@ looks for the wolfSSL `user_settings.h` in the project as described below. | |
### File: `sdkconfig.h` | ||
|
||
The Espressif `sdkconfig.h`, generated automatically from your `sdkconfig` | ||
file at [build](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html) | ||
file at [build](Espressif api-guides/build-system.html) | ||
time, should be included before any other files. | ||
|
||
### File: `user_settings.h` | ||
|
@@ -101,7 +102,7 @@ of your source code, particularly before the `#include <wolfssl/wolfcrypt/settin | |
|
||
## Requirements | ||
|
||
1. [ESP-IDF development framework](https://docs.espressif.com/projects/esp-idf/en/latest/get-started/) | ||
1. [ESP-IDF development framework](https://github.com/espressif/esp-idf) | ||
|
||
## wolfSSL as an Espressif component | ||
|
||
|
@@ -113,7 +114,7 @@ There are various methods available for using wolfSSL as a component: | |
|
||
## Espressif Managed Components | ||
|
||
Visit https://components.espressif.com/components/wolfssl/wolfssl and see the instructions. Typically: | ||
Visit https://www.wolfssl.com/wolfssl-now-available-in-espressif-component-registry/ and see the instructions. Typically: | ||
|
||
``` | ||
idf.py add-dependency "wolfssl/wolfssl^5.6.0-stable" | ||
|
@@ -140,7 +141,7 @@ See the specific examples for additional details. | |
|
||
This is an alternate method for installation. It is recommended to use the new `CMakeLists.txt` to point to wolfSSL source code. | ||
|
||
1. Run `setup.sh` at _/path/to_`/wolfssl/IDE/Espressif/ESP-IDF/` to deploy files into ESP-IDF tree | ||
1. Run `setup.sh` at _/path/to_`/wolfssl/IDE/Espressif/ESP-IDF/` to deploy files into ESP-IDF tree | ||
2. Find Wolfssl files at _/path/to/esp_`/esp-idf/components/wolfssl/` | ||
3. Find [Example Programs](https://github.com/wolfSSL/wolfssl/tree/master/IDE/Espressif/ESP-IDF/examples) under _/path/to/esp_`/esp-idf/examples/protocols/wolfssl_xxx` (where xxx is the project name) | ||
|
||
|
@@ -177,7 +178,7 @@ C:\SysGCC\esp32\esp-idf>git clone -b v5.0.2 --recursive https://github.com/espre | |
|
||
## Configuration | ||
|
||
1. The `user_settings.h` can be found in `[project]/components/wolfssl/include/user_settings.h`. | ||
1. The `user_settings.h` can be found in `[project]/components/wolfssl/include/user_settings.h`. | ||
|
||
## Configuration (Legacy IDF install) | ||
|
||
|
@@ -191,7 +192,7 @@ C:\SysGCC\esp32\esp-idf>git clone -b v5.0.2 --recursive https://github.com/espre | |
|
||
For question please email [[email protected]] | ||
|
||
Note: This is tested with : | ||
Note: This is tested with : | ||
- OS: Ubuntu 20.04.3 LTS | ||
- Microsoft Windows 10 Pro 10.0.19041 / Windows 11 Pro 22H2 22621.2715 | ||
- Visual Studio 2022 17.7.6 with VisualGDB 5.6R9 (build 4777) | ||
|
@@ -239,7 +240,7 @@ reset_config srst_push_pull trst_push_pull | |
|
||
Check "Long Paths Enabled" in Windows registry. | ||
|
||
Please set registry HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1. | ||
Please set registry HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1. | ||
|
||
The operation requires Administrator privileges. Command: | ||
|
||
|
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
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.