Kareem
f6cdcfcf9f
Fix wc_PeekErrorNodeLineData not unlocking error queue on error.
2023-04-28 16:35:49 -07:00
David Garske
52a20fc2b5
Merge pull request #6328 from julek-wolfssl/zd/16000
...
Allow cert callback to override skipAddCA
2023-04-28 10:25:13 -07:00
Juliusz Sosinowicz
13f4e178e5
Zephyr misc fixes for TLS ( #6353 )
...
* zephyr wolfssl_tls_sock: fix project name
* zephyr tls_sock.c: don't include options.h when using user settings
* zephyr: define XSTAT_TYPE for use with XSTAT
2023-04-28 10:00:24 -07:00
JacobBarthelmeh
6b2aca1418
Merge pull request #6347 from SparkiDev/sp_int_armv6_clz
...
SP int ARMv6: clz not available, correct #if
2023-04-28 09:43:58 -06:00
Juliusz Sosinowicz
36ac816cd1
Merge pull request #6342 from TakayukiMatsuo/unittest
2023-04-28 10:06:04 +02:00
Sean Parkinson
f8559b745e
Merge pull request #6351 from douzzer/20230427-linuxkm-simd-fixes
...
20230427-linuxkm-simd-fixes
2023-04-28 11:20:20 +10:00
Sean Parkinson
e4bf1a7c0b
Merge pull request #6350 from kareem-wolfssl/zd15670
...
Fix PowerPC inline assembly on old GNU toolchain.
2023-04-28 11:19:42 +10:00
Daniel Pouzzner
448f1ec9e7
linuxkm: in {save,restore}_vector_registers_x86(), check if vector register file has already been saved and invalidated, and if so, inhibit the kernel_fpu_{begin,end}() wrap and instead just use preempt_{disable,enable}() wraps.
2023-04-27 17:48:32 -05:00
Daniel Pouzzner
8a89303b49
wolfcrypt/test/test.c: add TEST_FAIL() macro (counterpart to incumbent TEST_PASS()), by default same as incumbent functionality, but #ifdef TEST_ALWAYS_RUN_TO_END, print errors as they occur but continue to end.
2023-04-27 17:46:56 -05:00
Daniel Pouzzner
3f60fa8c3b
configure.ac: escape backslashes when generating preprocessor directives for .build_params; delete backslashes and process parenthesized arguments correctly when generating options.h.
2023-04-27 17:38:29 -05:00
Hideki Miyazaki
dcd1428b7d
Merge pull request #6304 from TakayukiMatsuo/jpupdate
...
Update Japanese comments
2023-04-28 07:06:38 +09:00
Kareem
1172354664
Fix PowerPC inline assembly on old GNU as. It does not like an empty clobbered register line, so simply omit the line.
2023-04-27 14:54:51 -07:00
JacobBarthelmeh
7b52913451
Merge pull request #6345 from kareem-wolfssl/zd16035
...
Fix getting key size in stm32_ecc_sign_hash_ex.
2023-04-27 13:32:47 -06:00
JacobBarthelmeh
bbad64649b
Merge pull request #6340 from SparkiDev/minor_fixes_1
...
Minor fixes
2023-04-27 10:02:06 -06:00
TakayukiMatsuo
59472312a5
Fix example code in wolfSSL_get_chain_X509
2023-04-27 17:51:10 +09:00
Juliusz Sosinowicz
bf2c66a1cb
Allow cert callback to override skipAddCA
2023-04-27 10:07:04 +02:00
TakayukiMatsuo
4c47934562
Fix issues in test_wolfSSL_dtls_fragments
2023-04-27 17:00:29 +09:00
Sean Parkinson
d901433999
SP int ARMv6: clz not available, correct #if
...
Checking for architecture less than 7 to use clz instruction when clz is
only guaranteed to be available in 7 or more. Reverse logic.
2023-04-27 09:41:31 +10:00
JacobBarthelmeh
ca4a17ebf6
Merge pull request #6339 from SparkiDev/asn_orig_ocsp_fix
...
ASN original, OCSP: fix maximum size calc to GetDateInfo
2023-04-26 16:36:55 -06:00
Kareem
e7e2713bba
Fix getting key size in stm32_ecc_sign_hash_ex.
2023-04-26 15:00:59 -07:00
JacobBarthelmeh
ccb9bdd903
set dev ID with signature check ( #6318 )
...
* set dev ID with signature check
* refactor devId use and add API to set devId in WOLFSSL_CERT_MANAGER structure
* add api.c call to set devid with WOLFSSL_CERT_MANAGER
* resolving devID CRL issue and CM pointer
* add device find callback
* add simple test case
2023-04-26 11:19:00 -07:00
David Garske
3556b7adb7
Merge pull request #6338 from JacobBarthelmeh/certs
...
revert WOLFSSL_NO_ASN_STRICT macro guard
2023-04-26 11:16:04 -07:00
David Garske
b42d3566ab
Merge pull request #6336 from lealem47/useAfterFree
...
Remove XMEMSET after XFREE in sniffer.c
2023-04-26 10:50:00 -07:00
JacobBarthelmeh
32c6a66a4e
Merge pull request #6341 from douzzer/20230425-analyzer-coddling
...
20230425-analyzer-coddling
2023-04-26 11:22:23 -06:00
Chris Conlon
4526df6d78
Merge pull request #6199 from JacobBarthelmeh/PKCS7
...
add messageDigest attribute if adding any custom signed attributes
2023-04-26 09:23:22 -06:00
TakayukiMatsuo
ead8d9784b
Update Japanese comments
2023-04-26 18:20:51 +09:00
Daniel Pouzzner
5538d65a79
wolfcrypt/src/asn.c: add to DecodeCertInternal() a workaround for an apparent clang-tidy bug, gated on WOLFSSL_CLANG_TIDY, and add a missing cast to mollify -Wconversion;
...
wolfssl/wolfcrypt/sp_int.h: refactor MP_INT_SIZEOF() using sizeof(sp_int_minimal) and addition, rather than sizeof(sp_int) and subtraction, for clarity and analyzer mollification.
2023-04-26 00:05:37 -05:00
Sean Parkinson
5b0c017a94
ASN original, OCSP: fix maximum size calc to GetDateInfo
...
GetDateInfo called with a local index (reset to 0) but size is of
original buffer. Subtract the index into original buffer from size to
get size available for parsing.
2023-04-26 11:18:29 +10:00
Sean Parkinson
a5a4c71121
Minor fixes
...
EncryptContent() - id not initialized
sp_int.c: cast count to int to ensure same type comparison with i.
2023-04-26 11:05:07 +10:00
Sean Parkinson
c4233e7aec
Merge pull request #6288 from JacobBarthelmeh/Testing
...
avoid callback buffer overwrite with sha512_224 and remove min from w…
2023-04-26 08:36:20 +10:00
Sean Parkinson
7fb9540176
Merge pull request #6337 from JacobBarthelmeh/fuzzing
...
add sanity check on PKCS7 index value
2023-04-26 08:33:25 +10:00
JacobBarthelmeh
5c97dfbb4c
Merge pull request #6334 from SparkiDev/openssl_ec_set_priv_key_check
...
OpenSSL EC API: fix setting private key
2023-04-25 16:32:53 -06:00
Sean Parkinson
2641c493b3
Merge pull request #6335 from JacobBarthelmeh/RT1170
...
add guard for random with CAAM + MQX
2023-04-26 08:32:20 +10:00
JacobBarthelmeh
71f71074f8
revert WOLFSSL_NO_ASN_STRICT macro guard
2023-04-25 13:32:19 -07:00
Jacob Barthelmeh
bbe9c694a6
more specific naming for attribute types
2023-04-25 13:56:29 -06:00
JacobBarthelmeh
d701a0a06e
add sanity check on PKCS7 index value
2023-04-25 08:30:33 -07:00
Lealem Amedie
84ea15039f
Remove XMEMSET after XFREE in sniffer.c
2023-04-25 09:16:39 -06:00
JacobBarthelmeh
57de292d19
add guard for random with CAAM + MQX
2023-04-24 16:29:22 -07:00
JacobBarthelmeh
3e5c8af571
Merge pull request #6322 from lealem47/remove_shellscript
...
Fix for CMake with USER_SETTINGS on Windows
2023-04-24 17:01:57 -06:00
JacobBarthelmeh
a991ce1a6b
Merge pull request #6327 from SparkiDev/memusage_5
...
Memory usage improvements
2023-04-24 16:42:56 -06:00
lealem47
a10526d5f9
Async sniffer: don't retry if seeing non-pending error ( #6220 )
...
* Async sniffer: don't retry if seeing non-pending error
* Print error messages when decrypting from queue
* Zeroize the SessionTable in ssl_FreeSniffer()
---------
Co-authored-by: Lealem Amedie <lealem47@github.com >
2023-04-24 13:51:55 -07:00
David Garske
9b7ca65608
Merge pull request #6330 from douzzer/20230421-configure-fixes
...
20230421-configure-fixes
2023-04-24 09:35:48 -07:00
JacobBarthelmeh
e1d1bef085
Merge pull request #6321 from SparkiDev/sp_int_missing_brace
...
SP int: missing brace
2023-04-24 10:00:39 -06:00
JacobBarthelmeh
cfeb8b9aee
Merge pull request #6332 from SparkiDev/bn_to_asn1_fix
...
BN_to_ASN1_INTEGER: fix handling of padding
2023-04-24 09:58:12 -06:00
Sean Parkinson
673d72a2dc
OpenSSL EC API: fix setting private key
...
wolfSSL_EC_KEY_set_private_key() should fail on obvious bad private key
values.
2023-04-24 17:59:32 +10:00
Sean Parkinson
2d06718857
Memory usage improvements
...
TLS 1.3 Server: don't cache the messages for Ed25519/Ed448 when doing
TLS 1.3.
ASN DecodeCertInternal: Call GetCertName for issuer and subject after
freeing the dataASN.
2023-04-24 11:12:00 +10:00
Sean Parkinson
6634ec198e
BN_to_ASN1_INTEGER: fix handling of padding
...
Incorrect calculation of when padding byte needed and consequently
adding byte manually when properly handled by SetASNInt().
2023-04-24 09:30:38 +10:00
Sean Parkinson
865581704e
Merge pull request #6312 from philljj/zd15961
...
Fix out-of-bounds write in fp_mod_2d.
2023-04-24 08:03:02 +10:00
Daniel Pouzzner
800f4df7a3
fix typos in configure.ac (from shellcheck --severity=warning).
2023-04-21 16:05:43 -05:00
Daniel Pouzzner
32ff165d8b
remove buggy+bug-prone WOLFSSL_NO_XOR_OPS setup in settings.h.
2023-04-21 16:05:20 -05:00