Daniel Pouzzner
1b907d05ed
WOLFSSL_DEBUG_TRACE_ERROR_CODES: restore several initializations, one because needed (in wolfSSL_UseSecureRenegotiation()), the rest in an abundance of caution, and rearrange wolfSSL_CryptHwMutexInit() and wolfSSL_CryptHwMutexUnLock() in a similar abundance of caution.
2024-06-10 13:44:03 -05:00
Daniel Pouzzner
b3e8f0ad24
add --enable-debug-trace-errcodes, WOLFSSL_DEBUG_TRACE_ERROR_CODES, WC_ERR_TRACE(), WC_NO_ERR_TRACE(), support/gen-debug-trace-error-codes.sh. also add numerous deployments of WC_NO_ERR_TRACE() to inhibit frivolous/misleading errcode traces when -DWOLFSSL_DEBUG_TRACE_ERROR_CODES.
2024-06-08 16:39:53 -05:00
JacobBarthelmeh
f7bc78cad0
Merge pull request #7602 from night1rider/Parsing-bug
...
Send BUFFER_ERROR if size does not meet minimum Requirements
2024-06-07 13:54:03 -06:00
night1rider
ebca3376ef
Send BUFFER_ERROR if size does not meet minimum reqs for the extension
2024-06-07 10:26:30 -06:00
Sean Parkinson
1c51465584
Merge pull request #7627 from douzzer/20240606-clang-tidy-and-mingw-fixes
...
20240606-clang-tidy-and-mingw-fixes
2024-06-07 10:08:55 +10:00
Daniel Pouzzner
ac5cabaac9
fixes for USE_WINDOWS_API && !NO_FILESYSTEM && !NO_WOLFSSL_DIR:
...
* in wc_port.h, add XWRITE and XREAD definitions and include <io.h>;
* in wolfSSL_BIO_read(), implement Windows support for XREAD and XWRITE;
* in wolfSSL_BIO_write_filename(), add 'b' flag to XFOPEN flags;
* in wolfSSL_RAND_file_name(), add support for XALTHOMEVARNAME, and add Windows definition for it to wc_port.h alongside XWRITE and XREAD.
fixes test_wolfSSL_BIO, test_wolfSSL_X509_print, test_wolfSSL_RAND, test_wolfSSL_RSA_print in cross-mingw-all-crypto scenario.
2024-06-06 17:14:12 -05:00
Lealem Amedie
5a1ac2742c
Reviewer feedback
2024-06-06 16:08:39 -06:00
Lealem Amedie
3de358ef06
Ensure extensions are only parsed once
2024-06-06 14:10:56 -06:00
Lealem Amedie
f3061359d8
Improved fix for TLS1.3 to TLS1.2 client downgrade
2024-06-06 12:22:50 -06:00
David Garske
b69482ffac
Merge pull request #7569 from SparkiDev/riscv_aes_asm
...
AES RISC-V 64-bit ASM: ECB/CBC/CTR/GCM/CCM
2024-06-06 08:11:31 -07:00
JacobBarthelmeh
7ce9ebde15
Merge pull request #7618 from julek-wolfssl/jwt-cpp
...
Fixes for jwt-cpp
2024-06-06 08:57:46 -06:00
Sean Parkinson
acd604db3d
AES RISC-V 64-bit ASM: ECB/CBC/CTR/GCM/CCM
...
Add implementations of AES for ECB/CBC/CTR/GCM/CCM for RISC-V using
assembly.
Assembly with standard/scalar cryptography/vector cryptographt
instructions.
2024-06-06 13:16:00 +10:00
Sean Parkinson
162dffb463
Merge pull request #7619 from lealem47/zd18074
...
Fix for TLS1.3 to 1.2 downgrade
2024-06-06 09:39:32 +10:00
Lealem Amedie
d20ac2ce42
Fix for TLS1.3 to 1.2 downgrade
2024-06-05 11:26:10 -06:00
JacobBarthelmeh
18526152fe
Merge pull request #7610 from gasbytes/sni-wrappers
...
CSharp Wrapper SNI Support
2024-06-05 10:27:42 -06:00
Juliusz Sosinowicz
72243300bf
HMAC: fix signature
2024-06-05 13:43:57 +02:00
gasbytes
983610ed68
- Applied David's patch to get access to the missing sni callback (arg)
...
- removed tlsext callback (since it's a compatibility one)
- updated testing examples and wrapper
2024-06-04 18:26:01 +02:00
Juliusz Sosinowicz
ede8cde8a7
dtls: Increment sequence number in SendAlert
2024-06-04 17:13:04 +02:00
Juliusz Sosinowicz
e428c2833b
Allow user to send a user_canceled alert
2024-06-04 17:13:04 +02:00
David Garske
1f684e62d6
Merge pull request #7604 from ColtonWilley/explicit_len_pattern_match
...
Rewrite pattern matching to use explicit length
2024-06-03 12:04:12 -07:00
Colton Willey
0c0069331b
Use same types for i and chklen, bring all lines under 80 chars
2024-06-03 09:25:41 -07:00
David Garske
3975af88cf
Merge pull request #7191 from kojo1/ecpoint-h2p
...
Add EC_POINT_hex2point
2024-06-01 07:13:31 -07:00
Takashi Kojo
bc2b184c98
Add EC_POINT_hex2point: zd #17090
2024-06-01 13:45:35 +09:00
JacobBarthelmeh
40562a0cb3
Merge pull request #7599 from dgarske/asn_checkcertsig
...
Expose `wc_CheckCertSigPubKey` with `WOLFSSL_SMALL_CERT_VERIFY`
2024-05-31 09:20:35 -06:00
David Garske
0789ecb808
Fix the CheckCertSignature API mess.
2024-05-31 06:58:35 -07:00
Colton Willey
447f73c25e
Merge branch 'master' of github.com:ColtonWilley/wolfssl into explicit_len_pattern_match
2024-05-30 20:12:16 -07:00
Colton Willey
f646cbcecb
Address review comments, fix handling of . in name matching and add more tests for . handling
2024-05-30 18:03:38 -07:00
David Garske
7fadd4ed9f
Merge pull request #7595 from JacobBarthelmeh/static
...
Pull in some staticmemory features
2024-05-30 16:31:54 -07:00
Colton Willey
af3828b2b7
Rewrite pattern matching to always use explicit lengths instead of expecting NULL terminated strings, thus replicating the behavior of openssl X509_check_host()
2024-05-30 15:33:17 -07:00
JacobBarthelmeh
ebdc8b9a32
rename of macros, add descriptions, minor fixes
2024-05-30 14:48:52 -06:00
David Garske
107c10d795
Merge pull request #7596 from JacobBarthelmeh/decl
...
make function signature match declaration
2024-05-30 10:59:04 -07:00
JacobBarthelmeh
cf61df129c
fix typo with NO_CERTS macro
2024-05-29 17:08:01 -06:00
JacobBarthelmeh
9673b3f218
make function signature match declaration
2024-05-29 17:00:22 -06:00
JacobBarthelmeh
288fe430f5
tying in lean staticmemory build with --enable-staticmemory=small
2024-05-29 15:50:11 -06:00
Anthony Hu
021b573027
Merge pull request #7581 from dgarske/embos_emnet
...
Fixes for Segger emNet to handle non-blocking want read/want write
2024-05-24 17:31:16 -04:00
gasbytes
063e48014a
fix tabs and spaces
2024-05-24 17:52:54 +02:00
David Garske
9b058ec3a2
Fixes for EMNET with non-blocking to handle want read/want write. ZD 18012
2024-05-24 07:42:18 -07:00
gasbytes
3f96d14b32
80 characters limit fix
2024-05-24 00:12:38 +02:00
gasbytes
12a5cb45fb
separating two x509_store xmalloc checks
2024-05-23 23:04:00 +02:00
Tobias Frauenschläger
d28dd602e5
Various fixes for dual algorithm certificates ( #7577 )
...
This commit adds varios fixes for the implementation of hybrid
certificates with two algorithms:
* Support for Certificate Signing Requests (both creating hybrid ones
and also verifying ones)
* Fix for SAN fields in the DecodedCert and PreTBS generation
* Fix related to WOLFSSL_SMALL_STACK
Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com >
2024-05-23 15:03:55 -04:00
Tobias Frauenschläger
9a58301ab1
Fix PQC and hybrid certificate regressions
...
Due to recent changes in the logic to decode private keys and to parse
the TLS1.3 CertificateVerify message, some regressions regarding PQC
private keys and hybrid certificates have been introduced:
* Decoding PQC private keys fails as the PKCS8 header of a decoded DER
file is now already removed before parsing the key.
* The key size wasn't properly stored in the context for PQC keys after
decoding a certificate (always the maximum size)
* The two 16-bit size values in case of a hybrid signature in the
CertificateVerify message have been incorrectly decoded as 32-bit
values instead of 16-bit values. This resulted in wrong values,
leading to segmentation faults.
All three regressions are fixed with the changes in this commit.
Signed-off-by: Tobias Frauenschläger <t.frauenschlaeger@me.com >
2024-05-23 16:01:28 +02:00
David Garske
425dd1986b
Merge pull request #7568 from lealem47/fips_pkcallback
...
Fix building FIPS v5 with PK callbacks
2024-05-22 08:45:58 -07:00
Lealem Amedie
ba5cc9bdaf
Fix building FIPS v5 with PK callbacks
2024-05-21 15:07:32 -06:00
Daniel Pouzzner
c5ce984966
wolfcrypt/src/wc_xmss_impl.c:wc_xmssmt_sign_next_idx(): use (XmssIdx)1, not (word32)1, for a shift-by-height operand;
...
src/ssl.c:set_curves_list(): don't attempt to enable curves that are out-of-range for word32 disabled.
2024-05-21 13:57:40 -05:00
gojimmypi
84032fa24c
Correct error message file name in ssl_load.c
2024-05-20 17:20:39 -07:00
Daniel Pouzzner
5c6218696b
wolfcrypt/src/misc.c: fix -Wconversions in CopyString();
...
src/ssl.c: fix missing semicolon in wolfSSL_CTX_check_private_key().
2024-05-18 02:31:58 -05:00
David Garske
219a338107
Merge pull request #7547 from philljj/spelling_cleanup
...
Used codespell and fixed some obvious typos.
2024-05-16 14:10:19 -07:00
David Garske
a8dd736b1e
Merge pull request #7158 from JacobBarthelmeh/psk
...
warning fix for small PSK build
2024-05-16 12:57:08 -07:00
jordan
040e0c956a
Used codespell and fixed obvious typos.
2024-05-16 13:53:26 -05:00
Juliusz Sosinowicz
76aba42bfa
Fix api signature
2024-05-16 18:20:53 +02:00