Files
wolfssl/tests/api
Andrew Hutchings f31ed0d0cd Fix logic bug in TLSX_TCA_Find causing incorrect Trusted CA matching
The while loop conditions in TLSX_TCA_Find were inverted, causing two
bugs: the loop short-circuited on type match alone without checking the
id content, and the XMEMCMP sense was reversed (continuing on match,
stopping on mismatch). This meant any TCA entry with a matching type
would be returned as a match regardless of whether the identifier
actually matched.

Restructure the loop to correctly require both type and id (size +
content) to match before returning an entry, and to match any entry
immediately for PRE_AGREED type.

Add test_TLSX_TCA_Find unit test exercising exact match, mismatched id,
and PRE_AGREED cases via memio handshake.
2026-02-17 10:35:54 +00:00
..
2026-01-13 06:34:49 +10:00
2026-01-07 17:53:43 +01:00
2026-01-07 17:53:43 +01:00
2025-07-10 16:11:36 -06:00
2025-07-10 16:11:36 -06:00
2026-01-19 09:38:17 +01:00
2026-02-10 18:06:47 +00:00
2025-10-16 12:13:32 +10:00
2025-08-05 07:22:04 -07:00
2026-02-05 12:12:16 -07:00
2026-02-10 15:47:10 +00:00
2026-02-10 15:47:10 +00:00
2026-01-28 07:37:29 +10:00
2025-12-09 17:07:40 +01:00