565be3d11c
Update framework submodule to include test files
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-04-09 18:31:15 +01:00
557abf0388
Update references to tests/src and tests/include
...
These are references that are part of the PSA shared memory testing
work and thus were not previously updated.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-04-09 18:29:45 +01:00
4f5adea0ad
Update paths in Makefiles
...
The MBEDTLS_TEST_PATH variable now points into the framework submodule,
along with other ad-hoc paths in the Makefiles.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-04-09 18:29:45 +01:00
08a24a464e
Remove tests/src and tests/include
...
These have now been moved to framework/src and framework/include,
respectively.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-04-09 18:29:42 +01:00
63d9303672
Update path in build_psa_alt_headers component
...
This all.sh component specifies a path directly so needs editing to
point into the framework submodule.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-04-09 18:27:13 +01:00
ff0e6b067f
Update references to tests/include in CMakeLists
...
tests/CMakeLists.txt now refers correctly to framework/include rather
than tests/include.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-04-09 18:27:13 +01:00
99ee750079
Replace references to tests/include
...
Update them instead to refer to framework/include, where the contents
of tests/include have been moved.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-04-09 18:27:13 +01:00
844da45666
Replace tests/src with framework/src
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-04-09 18:27:13 +01:00
bee96566da
Merge pull request #8999 from tom-cosgrove-arm/fix-compilation-when-memcpy-is-function-like-macro
...
Fix compilation when memcpy() is a function-like macro
2024-04-09 11:34:46 +00:00
32e26eff49
Merge pull request #8997 from mpg/fix-wrong-dep-test-case
...
Fix wrong dependencies in test cases
2024-04-09 11:34:08 +00:00
f53112e98b
Fix closing comment to match opening guard
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2024-04-09 10:48:24 +02:00
0a4ffa4c3e
Fix style of preprocessor expression
...
We use logical '&&' everywhere, let's be consistent.
(Unless I'm mistaken, binary '&' happens to give the same results for
booleans so this wasn't an actual bug, just style/readability issue.)
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2024-04-09 10:48:24 +02:00
ebdca796a1
Fix failures in psa_cryto_driver_wrappers suite
...
- "in-driver" test should depend on the present
of a driver.
- add new counter in key manangement driver test
hook which counts the calls of generate_key.
- We only care about the hits when processing
`psa_generate_key`.
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2024-04-09 10:48:24 +02:00
057ceb281c
Add missing dependency of fallback test in driver wrappers suite
...
To pass a fallback test, we need a dependency on built-in
implementation.
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2024-04-09 10:48:24 +02:00
03fe253533
Add missing definition of AT_LEAST_ONE_BUILTIN_KDF
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2024-04-09 10:48:24 +02:00
7cca290120
Fix wrong dependency in psa_crypto_driver_wrappers suite
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2024-04-09 10:48:24 +02:00
b482a471d4
Fix wrong dependency in psa_crypto_pake suite
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2024-04-09 10:48:24 +02:00
7ee283362b
Fix typo in ssl test suite
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2024-04-09 10:48:24 +02:00
e2776d16ef
Correct dependancy on MBEDTLS_X509_INFO
for x509parse
...
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com >
2024-04-09 10:48:24 +02:00
a4b773d3bb
Merge pull request #6955 from inorick/nofa_no_session_tickets
...
Guard ticket specific TLS 1.3 function with macro
2024-04-08 08:56:17 +00:00
527a2eb8c4
Add change log
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-05 08:45:09 +02:00
233fcaadbf
tls13: Do not initiate at all resumption if tickets not supported
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-04 15:52:40 +02:00
fe15d90f72
tls13: Fix doc of mbedtls_ssl_session_set() - 2
...
Fix documentation of mbedtls_ssl_session_set()
regarding its dependency on MBEDTLS_SSL_SESSION_TICKETS
in TLS 1.3 case.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-04 15:52:34 +02:00
e4d9013518
Merge pull request #8987 from valeriosetti/issue8903
...
Test gap: mbedtls_pk_check_pair with MBEDTLS_PK_OPAQUE
2024-04-04 13:44:24 +00:00
a376f84eb1
Merge pull request #8937 from valeriosetti/issue8712
...
Clarify the documentation of mbedtls_pk_setup_opaque
2024-04-04 13:40:57 +00:00
d85eeae740
tls13: Fix doc of mbedtls_ssl_session_set() - 1
...
It was eventually decided to not support multiple
tickets in TLS 1.3 ClientHello messages thus
removing the parts in mbedtls_ssl_session_set()
documentation that were anticipating that.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-04 15:39:20 +02:00
66a206c26c
tls13: Fix doc of mbedtls_ssl_session_get() - 2
...
Fix documentation of mbedtls_ssl_session_get()
regarding its interaction with session
ticket enablement.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-04 15:34:22 +02:00
81bb589090
tls13: Fix doc of mbedtls_ssl_session_get() - 1
...
The API has eventually not been changed to
return multiple tickets through multiple
subsequent call to it.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-04 15:30:55 +02:00
9314df617b
tls: Fix doc of mbedtls_ssl_session_save()
...
Fix documentation of mbedtls_ssl_session_save()
regarding its dependency on MBEDTLS_SSL_SESSION_TICKETS
in TLS 1.3 session case.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-04 14:07:50 +02:00
387aafff5b
Merge pull request #9007 from mpg/checkbox-3.6
...
Add 3.6 backport checkbox to the PR template
2024-04-04 10:33:22 +00:00
b76573c662
We now have two LTS branches to backport to.
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2024-04-04 10:44:18 +02:00
1c7f5dea8b
pk: fix documentation of mbedtls_pk_setup_opaque()
...
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no >
2024-04-04 09:39:12 +02:00
cf47a15e96
ssl_msg.c: Rename _check_new_session_ticket to _is_new_session_ticket
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-02 17:46:52 +02:00
dd96c0a2df
all.sh: Use full instead of default as the base for the new component
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-02 17:46:44 +02:00
a2c45dc713
Fix compilation of ssl_tls13_generic.c when memcpy() is a function-like macro
...
Fixes #8994
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com >
2024-04-02 14:51:47 +01:00
d64fcee58c
tests: ssl: Fix dependencies of SRV TLS 1.3 session serialization tests
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-04-02 12:25:56 +02:00
30978ec650
Merge pull request #8874 from stevenwdv/development
...
Fix compilation on macOS without apple-clang
2024-03-29 13:59:36 +00:00
e146940714
Merge pull request #1216 from Mbed-TLS/mbedtls-3.6.0_mergeback
...
Mbedtls 3.6.0 mergeback
2024-03-28 14:31:03 +00:00
9860056006
Revert "Autogenerated files for 3.6.0"
...
This reverts commit e8a6833b28
.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-03-27 17:36:15 +00:00
ceae4f85ea
ssl-opt.sh: Add tests where tickets are ignored
...
Add tests where we explicitely check that
tickets are ignored on client side when
the support is not enabled.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-03-27 09:37:37 +01:00
7df18bc210
tls13: cli: Ignore tickets if not supported
...
If a TLS 1.3 client receives a ticket and
the feature is not enabled, ignore it.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-03-27 09:37:37 +01:00
4f1c9278cc
ssl-opt.sh: Add missing MBEDTLS_SSL_SESSION_TICKETS dependencies
...
Signed-off-by: Norbert Fabritius <norbert.fabritius@esrlabs.com >
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com >
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-03-27 09:37:37 +01:00
d30e91150e
all.sh: Add component testing default minus session tickets
...
Signed-off-by: Norbert Fabritius <norbert.fabritius@esrlabs.com >
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-03-27 09:37:37 +01:00
161e14faf6
tests: ssl: Fix dependencies of TLS 1.3 session serialization tests
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-03-27 09:37:37 +01:00
8d15e0114b
tests: ssl: Add hostname checks in session serialization tests
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-03-27 09:37:31 +01:00
ad0ee1a7c4
tests: ssl: Remove redundant test
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-03-27 09:18:04 +01:00
18b92a1aec
tests: ssl: Fix session field guards
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-03-27 09:07:50 +01:00
d36913a58f
Constify parameter of ssl_tls13_session_load
...
Signed-off-by: Norbert Fabritius <norbert.fabritius@esrlabs.com >
2024-03-27 08:22:53 +01:00
8ceeff95e9
Enable ssl_tls13_get_ciphersuite_hash_alg only if macro is active
...
Signed-off-by: Norbert Fabritius <norbert.fabritius@esrlabs.com >
2024-03-27 08:22:53 +01:00
d60aef0f1b
Unconditionally define session variable
...
Signed-off-by: Norbert Fabritius <norbert.fabritius@esrlabs.com >
2024-03-27 08:22:53 +01:00