Gilles Peskine
84442115ff
Merge pull request #10137 from gilles-peskine-arm/test_suite_ssl-fix-ret-20250408-3.6
...
Backport 3.6: Fix uncaught failure conditions in test_suite_ssl
2025-04-23 16:42:17 +00:00
Gilles Peskine
0e6032dd94
Fix some test helper functions returning 0 on some failures
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-04-17 10:35:04 +02:00
Gilles Peskine
1ff12810e5
Check the status of mbedtls_ssl_set_hostname()
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-04-17 10:35:03 +02:00
Max Fillinger
c8f936e746
mbedtls_test_ssl_do_handshake_with_endpoints: Zeroize endpoints
...
Signed-off-by: Max Fillinger <max@max-fillinger.net >
2025-04-16 11:24:49 +02:00
Max Fillinger
538ed71ecb
Coding style cleanup
...
Signed-off-by: Max Fillinger <max@max-fillinger.net >
2025-04-16 11:23:42 +02:00
Max Fillinger
436cc20378
Exportert tests: Free endpoints and options
...
Signed-off-by: Max Fillinger <max@max-fillinger.net >
2025-04-16 11:23:41 +02:00
Max Fillinger
9e23339ae9
Add more tests for keying material export
...
Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com >
2025-04-16 11:23:40 +02:00
Ronald Cron
f810d44956
cmake: Generate test_keys.h and test_certs.h in the build tree
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-25 09:49:22 +01:00
Minos Galanakis
05657d9dee
Revert "Add auto-generated files"
...
This reverts commit 22098d41c6 .
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2025-03-23 13:09:30 +00:00
Minos Galanakis
22098d41c6
Add auto-generated files
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2025-03-20 09:33:09 +00:00
Minos Galanakis
7a95d16a31
Merge branch 'mbedtls-3.6-restricted' into mbedtls-3.6.3rc0-pr
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2025-03-18 16:28:26 +00:00
Manuel Pégourié-Gonnard
00ad6f6b03
New test function inject_client_content_on_the_wire()
...
Not used for real stuff so far, just getting the tooling in place.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2025-03-14 09:21:59 +01:00
Gilles Peskine
1f6864b174
Call mbedtls_ssl_set_hostname in the generic endpoint setup in unit tests
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-02-13 21:47:26 +01:00
David Horstmann
eae12b1a01
Move some test helpers out of Mbed TLS
...
Everything not TLS-related and not ALT-interface-related has been moved
out of tests/src and tests/include and into the framework.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-11-14 14:17:28 +00:00
Manuel Pégourié-Gonnard
6f35a4dbe0
Merge pull request #9547 from davidhorstmann-arm/align-development-3.6-test-helpers-3.6
...
Align 3.6 test helpers with development
2024-10-30 09:09:36 +00:00
Paul Elliott
d3aa6d91b9
Add const specifiers to pacify armclang
...
Functions designed for local scope only should be const
Signed-off-by: Paul Elliott <paul.elliott@arm.com >
2024-10-24 15:25:57 +01:00
David Horstmann
a7d2afe119
Tidy up header guards
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-10-23 16:55:20 +01:00
David Horstmann
dfd3075e32
Only guard with CRYPTO_CLIENT when version >= 4
...
In 4.x the semantics of MBEDTLS_PSA_CRYPTO_C and
MBEDTLS_PSA_CRYPTO_CLIENT are different compared with 3.6.
Where this is a problem, make guards more version-specific so that we
are guarding with MBEDTLS_PSA_CRYPTO_C for 3.6 and
MBEDTLS_PSA_CRYPTO_CLIENT for 4.x, keeping each branch the same as it
was formerly.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-10-21 14:13:41 +01:00
David Horstmann
3ee3223d9f
Regenerate PSA test wrappers
...
These necessarily differ from development
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-10-21 14:13:41 +01:00
David Horstmann
8660e4bde6
Align 3.6 tests/{src,include} with development PR
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-10-21 14:13:21 +01:00
Manuel Pégourié-Gonnard
9ec6d45e99
Fix code style (for real this time, hopefully)
...
For some reason I didn't think about other files in the previous commit.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2024-09-02 12:41:05 +02:00
Janos Follath
96cfd7a77a
Move bignum code path testing out of the library
...
Without this, it's not at all obvious that turning on MBEDTLS_TEST_HOOKS
doesn't change the functional behavior of the code.
Signed-off-by: Janos Follath <janos.follath@arm.com >
2024-09-02 10:30:47 +02:00
Ronald Cron
9f44c883f4
Rename some "new_session_tickets" symbols
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-08-28 17:47:46 +02:00
Ronald Cron
d67f801c63
Do not add a new field in the SSL config
...
We cannot add a new field in SSL config in
an LTS. Use `session_tickets` field instead.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-08-28 10:41:54 +02:00
Ronald Cron
23303a47f4
Enable TLS 1.3 ticket handling in resumption tests
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-08-27 16:20:40 +02:00