Andras Fekete
d350ba6c41
remove NULL test with XFREE arguments with dereference
2024-08-06 10:44:59 -04:00
Andras Fekete
d6a7187538
Programmatically remove NULL test with { XFREE() }
2024-08-06 10:37:43 -04:00
Andras Fekete
208f2d6781
One more occurrence
2024-08-06 10:32:50 -04:00
Andras Fekete
eb0c64d79a
Remove NULL test when there is a dereference
2024-08-06 10:29:02 -04:00
Andras Fekete
d7a0f49906
Programmatically remove NULL test before XFREE
2024-08-06 10:20:45 -04:00
Andras Fekete
a0b2da98e6
Remove if(ptr) XFREE(ptr)
2024-08-05 17:47:59 -04:00
Sean Parkinson
54370cc51e
Merge pull request #7829 from douzzer/20240804-SetDNSEntry-double-free
...
20240804-SetDNSEntry-double-free
2024-08-05 12:51:31 +10:00
Daniel Pouzzner
d65be7af21
wolfcrypt/src/asn.c and wolfssl/wolfcrypt/asn.h: in SetDNSEntry(), defer XFREE(dnsEntry, ...) until end (fixes double free); add PBE_NONE to enum PBESTypes; in EncryptContent(), initialize id to PBE_NONE to fix a -Wmaybe-uninitialized (CheckAlgo() can leave it unchanged even when returning success).
2024-08-04 15:41:52 -05:00
Daniel Pouzzner
9aa0742baa
Merge pull request #7798 from dgarske/asn_macros
...
ASN macro simplification
merged with github CI tests failing due to unrelated upstream changes (same tests all previously succeeded on this PR, with only 25d14f1937 added in the meantime).
supplementary testing with `wolfssl-multi-test.sh ... super-quick-check` after rebase on then-current `master` 15e99c8eff .
2024-08-02 16:36:50 -05:00
David Garske
35b45aa015
Merge pull request #7826 from douzzer/20240802-linuxkm-kernel-6v11
...
20240802-linuxkm-kernel-6v11
2024-08-02 14:03:38 -07:00
David Garske
25d14f1937
Fail with NOT_COMPILED_IN if someone tries to use ConfirmSignature with NO_ASN_CRYPT. Also default to signature failed.
2024-08-02 08:25:15 -07:00
Daniel Pouzzner
19ea0b22d0
linuxkm: update for kernel 6.11 (__kvmalloc_node_noprof and __kmalloc_cache_noprof).
2024-08-02 10:16:51 -05:00
David Garske
b12a773821
Merge pull request #7818 from SparkiDev/riscv-chacha-asm
...
RISC-V ChaCha20: assembly implementations
2024-08-02 07:52:53 -07:00
Sean Parkinson
423c1d3e57
fixup
2024-08-02 11:58:50 +10:00
Sean Parkinson
01afe89fa2
Merge pull request #7822 from anhu/WOLFSSL_NO_GOOGLE_TEST
...
Only run the google test if the WOLFSSL_EXTERNAL_TEST env var is set.
2024-08-02 09:06:21 +10:00
David Garske
a18d0161ef
Fixes for minor implicit cast warnings and line length. Also fixed benchmark.c error without ChaCha and unused encrypt_only.
2024-08-01 15:26:02 -07:00
Anthony Hu
bd88078639
Change to use already existing WOLFSSL_EXTERNAL_TEST
2024-08-01 17:10:53 -04:00
Anthony Hu
1199d5a5a8
If the WOLFSSL_NO_GOOGLE_TEST env var is set, don't run the google test.
2024-08-01 16:41:22 -04:00
David Garske
15e99c8eff
Merge pull request #7820 from Laboratory-for-Safe-and-Secure-Systems/sha3_cmake
...
Build SHA3 assembly with INTEL_SPEEDUP
2024-08-01 11:40:09 -07:00
David Garske
c3adf6635b
Merge pull request #7775 from gojimmypi/pr-arduino-script
...
Update Arduino publishing script for 5.7.2 release
2024-08-01 11:24:40 -07:00
David Garske
9f62ff6e38
Merge pull request #7691 from julek-wolfssl/ntp-action
...
Add ntp action
2024-08-01 11:19:13 -07:00
David Garske
d2373246ad
Merge pull request #7657 from julek-wolfssl/cyrus-sasl-test-retry
...
Retry sasl tests as they appear to be flaky
2024-08-01 11:18:54 -07:00
David Garske
e1c1b5019e
Merge pull request #7651 from julek-wolfssl/rng-tools-action
...
Add rng-tools action
2024-08-01 11:16:17 -07:00
David Garske
16d05972ed
Merge pull request #7819 from julek-wolfssl/mosq-tests-retry
...
Retry mosquitto tests as they appear to be flaky
2024-08-01 11:15:53 -07:00
David Garske
65283fb9bb
Improvement for the --enable-asn=nocrypt. Note: This option skips certificate signature checking, so make check TLS expected failures do not pass. Cleanup of the api.c headers / macros.
2024-08-01 10:27:22 -07:00
Tobias Frauenschläger
aee446f3e5
Build SHA3 assembly with INTEL_SPEEDUP
...
Make sure the file `sha3_asm.S` is compiled when `WOLFSSL_INTEL_ASM` is
enabled using CMake.
Signed-off-by: Tobias Frauenschläger <tobias.frauenschlaeger@oth-regensburg.de >
2024-08-01 16:31:18 +02:00
Juliusz Sosinowicz
4c86219afa
Retry mosquitto tests as they appear to be flaky
2024-08-01 14:17:19 +02:00
Juliusz Sosinowicz
edb5d09e6c
Add rng-tools action
2024-08-01 13:56:37 +02:00
Juliusz Sosinowicz
90861d9e6d
Retry sasl tests as they appear to be flaky
2024-08-01 12:05:33 +02:00
Juliusz Sosinowicz
3943e1324f
Add ntp action
2024-08-01 11:54:47 +02:00
Sean Parkinson
ebb49b6e68
RISC-V ChaCha20: assembly implementations
...
ChaCha20:
scalar and vector implementations
vector implementations doing 6, 4, 2, 1 block at a time.
scalar implemetations using roriw and pack
vector implementations using VROR_VI and roriw.
RISC-V SHA-256: avoid using s0 if it can be helped.
2024-08-01 17:51:59 +10:00
Sean Parkinson
1b8254d668
Merge pull request #7808 from Laboratory-for-Safe-and-Secure-Systems/preTBS_memory_leak
...
Fix memory leak in wc_GeneratePreTBS()
2024-08-01 08:47:47 +10:00
Sean Parkinson
1bc085358a
Merge pull request #7817 from dgarske/wildcard_c
...
Fix for .c files to ensure macro guards for wildcard
2024-08-01 08:46:35 +10:00
David Garske
1dd94bb0cb
Fix for .c files to ensure macro guards for wildcard.
2024-07-31 14:23:05 -07:00
David Garske
54997837f4
Merge pull request #7805 from julek-wolfssl/wolfSSL_X509_REQ_add1_attr_by_NID-push-cleanup
...
wolfSSL_X509_REQ_add1_attr_by_NID: clean up push call for analyzers
2024-07-31 13:16:30 -07:00
David Garske
1ade735579
Merge pull request #7815 from douzzer/20240731-Wconversion
...
20240731-Wconversion
2024-07-31 13:15:08 -07:00
David Garske
7023d5212c
Fix for --enable-all --enable-asn=original.
2024-07-31 13:10:52 -07:00
Daniel Pouzzner
6017c86e5d
wolfcrypt/src/wc_port.c: fix -Wconversions in wc_strdup_ex().
2024-07-31 19:36:59 +00:00
David Garske
548a2c6d8e
Fixed issues building with nocrypt. Improved logic on ASN_BER_TO_DER. Improved logic on unknown extension callback (new WC_ASN_UNKNOWN_EXT_CB gate).
2024-07-31 09:42:46 -07:00
Sean Parkinson
407b78962e
Merge pull request #7811 from lealem47/removeNULL
...
Remove HAVE_NULL_CIPHER from --enable-openssh
2024-07-31 21:55:13 +10:00
Sean Parkinson
dbf88e4c73
Merge pull request #7779 from rizlik/ocsp-dfree-fix
...
ocsp: don't free ocsp request if saved in ssl->ctx->certOcspRequest
2024-07-31 09:31:42 +10:00
Sean Parkinson
ad76038b86
Merge pull request #7812 from dgarske/fix_tls12_secret_callback
...
Fix for TLS v1.2 secret callback, incorrectly detecting bad master secret
2024-07-31 09:29:09 +10:00
David Garske
6a1139a6ee
Merge pull request #7758 from SparkiDev/riscv-sha256-asm
...
RISC-V 64: Add assembly code for SHA-256
2024-07-30 16:23:57 -07:00
Sean Parkinson
31cb72ed8a
Merge pull request #7788 from anhu/kyber_with_fips
...
Allow kyber to be built with FIPS
2024-07-31 09:04:29 +10:00
David Garske
1d9b86e2b0
Fix for TLS v1.2 secret callback, incorrectly detecting bad master secret. API test cleanups (no sleep needed).
2024-07-30 11:54:17 -07:00
David Garske
877c1d781f
Fix bad C89 XSNPRINTF remap.
2024-07-30 10:39:48 -07:00
David Garske
bbbc1e074c
Fixes for clang-tidy.
2024-07-30 10:35:21 -07:00
David Garske
afb6fe6c5f
Fixes for building due to missing OCSP and DecodePolicyOID (--enable-curl and --enable-openssh).
2024-07-30 10:35:21 -07:00
David Garske
20f7d6f9f4
ASN macro simplification. Added new --enable-asn=all and WOLFSSL_ASN_ALL option. Added granular macros for ASN features like: WOLFSSL_ASN_CA_ISSUER, WOLFSSL_ASN_PARSE_KEYUSAGE, WOLFSSL_ASN_TIME_STRING, WOLFSSL_OCSP_PARSE_STATUS.
2024-07-30 10:35:20 -07:00
Lealem Amedie
fb3185bb72
Remove HAVE_NULL_CIPHER from --enable-openssh
2024-07-30 10:46:56 -06:00