Skip to content

Commit 3296e6a

Browse files
Merge remote-tracking branch 'upstream/master' into zd20603
2 parents 88a55cd + 9a4fa0d commit 3296e6a

160 files changed

Lines changed: 129990 additions & 40248 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/fil-c.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Fil-C Tests
2+
3+
env:
4+
FIL_C_VERSION: v0.673
5+
6+
# START OF COMMON SECTION
7+
on:
8+
push:
9+
branches: [ 'master', 'main', 'release/**' ]
10+
pull_request:
11+
branches: [ '*' ]
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
# END OF COMMON SECTION
17+
18+
jobs:
19+
run_fil_c:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
config: [
24+
# Add new configs here. Don't use CPPFLAGS.
25+
'',
26+
'--enable-all',
27+
]
28+
# This should be a safe limit for the tests to run.
29+
timeout-minutes: 30
30+
if: github.repository_owner == 'wolfssl'
31+
runs-on: ubuntu-22.04
32+
name: ${{ matrix.config }}
33+
steps:
34+
- name: Download fil-c release
35+
run: gh release download ${{ env.FIL_C_VERSION }} --repo pizlonator/fil-c --pattern 'filc-*'
36+
env:
37+
GH_TOKEN: ${{ github.token }}
38+
39+
- name: Extract fil-c tarball
40+
run: mkdir -p filc && tar -xf filc-*.tar* --strip-components=1 -C filc
41+
42+
- name: Build and test wolfSSL
43+
uses: wolfSSL/actions-build-autotools-project@v1
44+
with:
45+
path: wolfssl
46+
configure: ${{ matrix.config }} CC=$GITHUB_WORKSPACE/filc/build/bin/filcc --disable-asm CPPFLAGS=-DWC_NO_CACHE_RESISTANT
47+
check: true

.github/workflows/linuxkm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
echo "preparing target kernel $(uname -r)"
3737
pushd "/lib/modules/$(uname -r)/build" || $(exit 4)
3838
if [ -f /proc/config.gz ]; then gzip -dc /proc/config.gz > /tmp/.config && sudo mv /tmp/.config . || $(exit 5); elif [ -f "/boot/config-$(uname -r)" ]; then sudo cp -p "/boot/config-$(uname -r)" .config || $(exit 6); fi
39-
sudo make -j 4 oldconfig || $(exit 7)
39+
sudo make -j 4 olddefconfig || $(exit 7)
4040
sudo make M="$(pwd)" modules_prepare || $(exit 8)
4141
popd >/dev/null
4242

.wolfssl_known_macro_extras

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ CONFIG_ESP_WOLFSSL_NO_HW_RSA_PRI_MULMOD
105105
CONFIG_ESP_WOLFSSL_NO_STACK_SIZE_BUILD_WARNING
106106
CONFIG_FREERTOS_HZ
107107
CONFIG_FREERTOS_UNICORE
108+
CONFIG_HAVE_KPROBES
108109
CONFIG_IDF_TARGET
109110
CONFIG_IDF_TARGET_ARCH_RISCV
110111
CONFIG_IDF_TARGET_ARCH_XTENSA
@@ -221,6 +222,7 @@ ETHERNET_AVAILABLE
221222
ETHERNET_H
222223
EV_TRIGGER
223224
EXTERNAL_LOADER_APP
225+
FIPS_OPTEST_FULL_RUN_AT_MODULE_INIT
224226
FORCE_FAILURE_GETRANDOM
225227
FP_ECC_CONTROL
226228
FREERTOS_TCP_WINSIM
@@ -604,7 +606,6 @@ WC_DISABLE_RADIX_ZERO_PAD
604606
WC_ECC_NONBLOCK_ONLY
605607
WC_FLAG_DONT_USE_AESNI
606608
WC_FORCE_LINUXKM_FORTIFY_SOURCE
607-
WC_KDF_NIST_SP_800_56C
608609
WC_LMS_FULL_HASH
609610
WC_NO_RNG_SIMPLE
610611
WC_NO_STATIC_ASSERT
@@ -621,6 +622,7 @@ WC_SHA512
621622
WC_SKIP_INCLUDED_C_FILES
622623
WC_SSIZE_TYPE
623624
WC_STRICT_SIG
625+
WC_USE_PIE_FENCEPOSTS_FOR_FIPS
624626
WC_WANT_FLAG_DONT_USE_VECTOR_OPS
625627
WC_XMSS_FULL_HASH
626628
WIFIESPAT
@@ -632,7 +634,6 @@ WOLFCRYPT_FIPS_CORE_DYNAMIC_HASH_VALUE
632634
WOLFSENTRY_H
633635
WOLFSENTRY_NO_JSON
634636
WOLFSSL_32BIT_MILLI_TIME
635-
WOLFSSL_AARCH64_PRIVILEGE_MODE
636637
WOLFSSL_AESNI_BY4
637638
WOLFSSL_AESNI_BY6
638639
WOLFSSL_AES_CTR_EXAMPLE
@@ -833,7 +834,6 @@ WOLFSSL_PSK_IDENTITY_ALERT
833834
WOLFSSL_PSK_ID_PROTECTION
834835
WOLFSSL_PSK_MULTI_ID_PER_CS
835836
WOLFSSL_PSK_TLS13_CB
836-
WOLFSSL_PSOC6_CRYPTO
837837
WOLFSSL_PYTHON
838838
WOLFSSL_RENESAS_FSPSM_CRYPT_ONLY
839839
WOLFSSL_RENESAS_RA6M3

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,16 +2682,17 @@ if(WOLFSSL_EXAMPLES)
26822682
tests/api/test_pkcs7.c
26832683
tests/api/test_pkcs12.c
26842684
tests/api/test_ossl_asn1.c
2685-
tests/api/test_ossl_bn.c
26862685
tests/api/test_ossl_bio.c
2687-
tests/api/test_ossl_dgst.c
2688-
tests/api/test_ossl_mac.c
2686+
tests/api/test_ossl_bn.c
26892687
tests/api/test_ossl_cipher.c
2690-
tests/api/test_ossl_rsa.c
26912688
tests/api/test_ossl_dh.c
2689+
tests/api/test_ossl_dgst.c
2690+
tests/api/test_ossl_dsa.c
26922691
tests/api/test_ossl_ec.c
26932692
tests/api/test_ossl_ecx.c
2694-
tests/api/test_ossl_dsa.c
2693+
tests/api/test_ossl_mac.c
2694+
tests/api/test_ossl_rsa.c
2695+
tests/api/test_ossl_sk.c
26952696
tests/api/test_tls13.c
26962697
tests/srp.c
26972698
tests/suites.c

IDE/Espressif/ESP-IDF/UPDATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ Updates to Espressif ESP-IDF wolfssl_benchmark and wolfssl_test examples:
2222
- Added optional `time_helper` for wolfssl_test
2323
- Exclude `ssl_misc.c` in component cmake to fix warning: #warning ssl_misc.c does not need to be compiled separately from ssl.c
2424
- Exclude `ssl_crypto.c` in component cmake to fix warning: #warning ssl_crypto.c does not need to be compiled separately from ssl.c
25+
- Exclude `ssl_sk.c` in component cmake to fix warning: #warning ssl_sk.c does not need to be compiled separately from ssl.c

IDE/Espressif/ESP-IDF/examples/template/components/wolfssl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ else()
845845
"\"${WOLFSSL_ROOT}/src/ssl_misc.c\"" # included by ssl.c
846846
"\"${WOLFSSL_ROOT}/src/ssl_p7p12.c\"" # included by ssl.c
847847
"\"${WOLFSSL_ROOT}/src/ssl_sess.c\"" # included by ssl.c
848+
"\"${WOLFSSL_ROOT}/src/ssl_sk.c\"" # included by ssl.c
848849
"\"${WOLFSSL_ROOT}/src/x509.c\""
849850
"\"${WOLFSSL_ROOT}/src/x509_str.c\""
850851
"\"${WOLFSSL_ROOT}/wolfcrypt/src/ext_kyber.c\"" # external non-wolfssl Kyber disabled by default

IDE/Espressif/ESP-IDF/examples/wolfssl_benchmark/components/wolfssl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ else()
845845
"\"${WOLFSSL_ROOT}/src/ssl_misc.c\"" # included by ssl.c
846846
"\"${WOLFSSL_ROOT}/src/ssl_p7p12.c\"" # included by ssl.c
847847
"\"${WOLFSSL_ROOT}/src/ssl_sess.c\"" # included by ssl.c
848+
"\"${WOLFSSL_ROOT}/src/ssl_sk.c\"" # included by ssl.c
848849
"\"${WOLFSSL_ROOT}/src/x509.c\""
849850
"\"${WOLFSSL_ROOT}/src/x509_str.c\""
850851
"\"${WOLFSSL_ROOT}/wolfcrypt/src/ext_kyber.c\"" # external non-wolfssl Kyber disabled by default

IDE/Espressif/ESP-IDF/examples/wolfssl_client/components/wolfssl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ else()
845845
"\"${WOLFSSL_ROOT}/src/ssl_misc.c\"" # included by ssl.c
846846
"\"${WOLFSSL_ROOT}/src/ssl_p7p12.c\"" # included by ssl.c
847847
"\"${WOLFSSL_ROOT}/src/ssl_sess.c\"" # included by ssl.c
848+
"\"${WOLFSSL_ROOT}/src/ssl_sk.c\"" # included by ssl.c
848849
"\"${WOLFSSL_ROOT}/src/x509.c\""
849850
"\"${WOLFSSL_ROOT}/src/x509_str.c\""
850851
"\"${WOLFSSL_ROOT}/wolfcrypt/src/ext_kyber.c\"" # external non-wolfssl Kyber disabled by default

IDE/Espressif/ESP-IDF/examples/wolfssl_server/components/wolfssl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ else()
845845
"\"${WOLFSSL_ROOT}/src/ssl_misc.c\"" # included by ssl.c
846846
"\"${WOLFSSL_ROOT}/src/ssl_p7p12.c\"" # included by ssl.c
847847
"\"${WOLFSSL_ROOT}/src/ssl_sess.c\"" # included by ssl.c
848+
"\"${WOLFSSL_ROOT}/src/ssl_sk.c\"" # included by ssl.c
848849
"\"${WOLFSSL_ROOT}/src/x509.c\""
849850
"\"${WOLFSSL_ROOT}/src/x509_str.c\""
850851
"\"${WOLFSSL_ROOT}/wolfcrypt/src/ext_kyber.c\"" # external non-wolfssl Kyber disabled by default

IDE/Espressif/ESP-IDF/examples/wolfssl_test/components/wolfssl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ else()
845845
"\"${WOLFSSL_ROOT}/src/ssl_misc.c\"" # included by ssl.c
846846
"\"${WOLFSSL_ROOT}/src/ssl_p7p12.c\"" # included by ssl.c
847847
"\"${WOLFSSL_ROOT}/src/ssl_sess.c\"" # included by ssl.c
848+
"\"${WOLFSSL_ROOT}/src/ssl_sk.c\"" # included by ssl.c
848849
"\"${WOLFSSL_ROOT}/src/x509.c\""
849850
"\"${WOLFSSL_ROOT}/src/x509_str.c\""
850851
"\"${WOLFSSL_ROOT}/wolfcrypt/src/ext_kyber.c\"" # external non-wolfssl Kyber disabled by default

0 commit comments

Comments
 (0)