1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-09 16:41:19 +08:00
Hanno Becker 845ceb7cc8 Improve readability and efficiency of SSL cache reference impl
The reference session cache implementation may end up storing multiple
sessions associated to the same session ID if the set()-call for the
second session finds an outdated cache entry prior to noticing the entry
with the matching session ID. While this logically overwrites the existing
entry since we always search the cache in order, this is at least a waste
of resources.

This commit fixes this by always checking first whether the given ID is
already present in the cache.

It also restructures the code for easier readability.

Fixes #4509.

Signed-off-by: Hanno Becker <hanno.becker@arm.com>
2021-05-13 07:11:30 +01:00
..
2021-03-10 12:52:37 +00:00
2021-03-10 12:52:37 +00:00
2021-03-10 12:52:37 +00:00
2021-03-04 14:34:50 +00:00
2021-03-10 12:52:37 +00:00
2021-01-29 11:09:50 +01:00
2021-03-10 12:52:37 +00:00
2021-03-10 23:44:28 +01:00
2021-03-10 12:52:37 +00:00
2021-03-10 12:52:37 +00:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-04-07 12:45:35 +01:00
2021-03-10 12:52:37 +00:00
2021-03-10 12:52:37 +00:00
2020-09-22 11:57:16 +02:00
2020-11-25 13:10:50 +01:00
2020-11-25 13:10:50 +01:00
2021-03-10 12:52:37 +00:00
2021-03-05 14:24:03 +00:00
2021-03-16 15:51:25 +01:00