Kareem
5b08b016af
Add client-absolute-urn.pem to renewcerts.sh
2023-03-16 16:14:08 -07:00
Kareem
cc51b2d52e
Add additional fix for absolute URN issue from PR #5964 and add test.
2023-03-16 14:56:44 -07:00
Kareem
4c12c334cf
Allow alternative absolute URI syntax in certificate general name.
2023-03-16 14:25:42 -07:00
Kareem
28f39f6b3d
Fix unit test failure when building OPENSSL_EXTRA without HAVE_EXT_CACHE.
2023-03-16 14:25:42 -07:00
Kareem
2bb8eeae85
Fix not ignoring date errors when VERIFY_SKIP_DATE is set
2023-03-16 14:25:41 -07:00
JacobBarthelmeh
8ec339d11c
Merge pull request #6175 from tim-weller-wolfssl/zd15722-mem-leak
...
zd15722 - Prevent out-of-bound read in ASN parsing logic by erroring out.
2023-03-16 07:29:26 -06:00
tim-weller-wolfssl
5659bd6036
Prevent out-of-bound read in ASN parsing logic by erroring out.
2023-03-16 06:11:34 -05:00
JacobBarthelmeh
7f6811a731
Merge pull request #6146 from kareem-wolfssl/zd15324
...
Fixes various warnings
2023-03-15 16:59:00 -06:00
Kareem
aaad3980a0
Various warning fixes. ESP32S3 include and build fixes. Added optional slot support for STSAFE shared secret using WOLFSSL_STSAFE_TAKES_SLOT.
2023-03-15 13:34:02 -07:00
JacobBarthelmeh
0486db8a2e
Merge pull request #6188 from SparkiDev/aes_gcm_streaming_long_nonce
...
AES-GCM streaming: fix IV caching
2023-03-15 11:39:37 -06:00
JacobBarthelmeh
8ba35a5f16
Merge pull request #6180 from julek-wolfssl/openvpn-test
...
Add libnl-genl-3-200 as dependency to openvpn test
2023-03-15 10:11:20 -06:00
Sean Parkinson
3b5310d186
AES-GCM streaming: fix IV caching
...
AES-GCM stremaing was caching IV even when larger than buffer copying
into.
Instead, require calls to wc_AesGcmSetIV() or wc_AesGcmSetExtIV() to
cache IV.
wc_AesGcmInit() now uses passed in IV or retrieves from cache.
2023-03-15 07:52:06 +10:00
Sean Parkinson
a268222167
Merge pull request #6169 from rizlik/wssl-alerts
...
Wssl alerts
2023-03-15 07:48:57 +10:00
JacobBarthelmeh
0355187f51
Merge pull request #6184 from bandi13/fixCRLTest
...
Fix possible timing issue with other tests copying the certs folder
2023-03-14 09:29:03 -06:00
Juliusz Sosinowicz
caad42291b
Merge pull request #6193 from JacobBarthelmeh/tls13
2023-03-14 14:54:00 +01:00
Marco Oliverio
94d983f94a
tests: add WOLFSSL_EXTRA_ALERTS tests
2023-03-14 13:27:40 +00:00
JacobBarthelmeh
c61d079905
Merge pull request #6186 from SparkiDev/asn_template_leading_zero
...
ASN template: compile option to allow leading zeros
2023-03-14 06:37:06 -06:00
Marco Oliverio
898fed9a8b
tests: memio: allow NULL client and/or server ctx
2023-03-14 09:27:19 +00:00
Marco Oliverio
4227f763a8
ssl: send alert on bad psk
2023-03-14 09:27:19 +00:00
Marco Oliverio
7b53baea62
refactor: more centralized extra alerts
...
on handshake messages' errors:
- don't send alerts on WANT_READ, WANT_WRITE and WC_PENDING_E "errors"
- use return error code to decide which alert description
to send
- use alert description handshake_failure in the general case
- if a fatal alert was already sent, do not send any new alerts. This allow
a more specific alert description in case the exact description can't be
derived from the return code
2023-03-14 09:27:18 +00:00
Marco Oliverio
f666a7d4b7
internal.c: fix fall_through compilation issues
...
src/internal.c: In function 'SendCertificateVerify':
./wolfssl/wolfcrypt/types.h:345:40: error: attribute 'fallthrough' not preceding a case label or default label [-Werror]
345 | #define FALL_THROUGH ; __attribute__ ((fallthrough))
In file included from ./wolfssl/internal.h:27,
from src/internal.c:92:
src/internal.c: In function 'SendCertificateVerify':
./wolfssl/wolfcrypt/types.h:345:40: error: attribute 'fallthrough' not preceding a case label or default label [-Werror]
345 | #define FALL_THROUGH ; __attribute__ ((fallthrough))
2023-03-14 09:27:18 +00:00
Sean Parkinson
1d0b04bfb3
ASN template: compile option to allow leading zeros
...
DER/BER encoding requires positive numbers to not have leading zeros.
Sometimes customer's have examples that break the rules.
In those cases define: WOLFSSL_ASN_INT_LEAD_0_ANY
Define used in original ASN.1 implementation.
2023-03-14 09:23:15 +10:00
JacobBarthelmeh
19a1ec8c98
Merge pull request #6192 from kaleb-himes/aes-free-dox
...
Document use of wc_AesFree()
2023-03-13 16:03:13 -06:00
JacobBarthelmeh
d7cd7bc256
adjust guards around PreSharedKey structure for non tls13 builds
2023-03-13 14:47:25 -07:00
kaleb-himes
9c1adbd83b
Fix typo's in the code sample(s)
2023-03-13 14:56:46 -06:00
kaleb-himes
5bbdda6895
Document use of wc_AesFree()
2023-03-13 11:50:28 -06:00
JacobBarthelmeh
e8828574ea
Merge pull request #6190 from bandi13/ghActions
...
Let tests run to completion
2023-03-13 09:24:09 -06:00
JacobBarthelmeh
694b527e67
Merge pull request #5910 from julek-wolfssl/dtls13-stateless
...
DTLS 1.3 stateless server ClientHello parsing
2023-03-13 09:22:58 -06:00
Andras Fekete
c56c4ef7ce
Hacky workaround to be able to put/remove files in certs folder
2023-03-13 10:37:21 -04:00
Andras Fekete
f3e785b4c7
Let tests run to completion
2023-03-13 09:48:37 -04:00
JacobBarthelmeh
bcd6bce040
Merge pull request #6183 from ejohnstown/rng-tweak
...
RNG Tweak
2023-03-10 15:16:54 -07:00
András Fekete
f2a955d5eb
Merge pull request #6182 from julek-wolfssl/hostap-testing
...
Add initial testing for wpa_supplicant
2023-03-10 15:44:07 -05:00
Andras Fekete
e2a1ab9e49
Fix possible timing issue with other tests copying the certs folder
2023-03-10 15:35:03 -05:00
John Safranek
907a29ab9e
RNG Tweak
...
1. Remove a redundant test. The duplicate data test is not required and
is checking for something that potentially can happen normally,
albeit rarely.
2023-03-10 11:08:35 -08:00
Juliusz Sosinowicz
a47cf08273
Add initial testing for wpa_supplicant
2023-03-10 17:12:56 +01:00
David Garske
90f1c26211
Merge pull request #6162 from gojimmypi/Espressif_fix_6148
...
compiler appeasement initialization
2023-03-09 20:08:24 -08:00
Juliusz Sosinowicz
9628eb0159
Add libnl-genl-3-200 as dependency to openvpn test
...
Looks like github actions removed libnl-genl-3-200 from the default image. Need to install manually.
2023-03-09 21:47:10 +01:00
Juliusz Sosinowicz
4c7aa5c8dd
Address code review
2023-03-09 19:00:25 +01:00
JacobBarthelmeh
2a15363033
Merge pull request #6176 from bandi13/addWolfCLUDocker
...
Add in wolfCLU Dockerfile
2023-03-09 10:39:56 -07:00
JacobBarthelmeh
4fe3cc60b0
Merge pull request #6177 from cconlon/asnTimeString
...
Fix GetAsnTimeString() to correctly increment internal data pointer
2023-03-09 09:36:59 -07:00
JacobBarthelmeh
a640418832
Merge pull request #6170 from julek-wolfssl/openvpn-test
...
Add fsanitize testing for openvpn
2023-03-09 09:25:43 -07:00
gojimmypi
30106d82ea
replace fp_init_copy to appease some compilers
2023-03-08 20:37:19 -08:00
Chris Conlon
d03347d79c
fix GetAsnTimeString() to correctly increment data_ptr, fixes PKCS#7 signedData signingTime attribute
2023-03-08 16:39:49 -07:00
Andras Fekete
ebf7fa585a
First attempt
2023-03-08 15:27:16 -05:00
Juliusz Sosinowicz
e04a01dc4c
Add fsanitize testing for openvpn
2023-03-08 11:23:41 +01:00
Sean Parkinson
6e58ca3bc4
Merge pull request #6171 from JacobBarthelmeh/Testing
...
build checks on mp_read_radix
2023-03-08 10:36:19 +10:00
Jacob Barthelmeh
07a1725635
remove redundent check on mp_read_radix available
2023-03-07 16:08:37 -07:00
Sean Parkinson
842b22858b
Merge pull request #6168 from anhu/WOLFSSL_RELAXED_ASN_PARSING
...
Relaxed parsing of explicit ECC public key
2023-03-08 08:20:04 +10:00
Jacob Barthelmeh
eb0bf7cd03
build checks on mp_read_radix
2023-03-07 13:55:10 -07:00
Anthony Hu
f1757b1bae
WOLFSSL_NO_ASN_STRICT
2023-03-07 07:24:25 -05:00