Gilles Peskine fd235bc9df Fix very high stack usage in SSL debug code
Use a switch instead of an array. The array was very hollow for some enum
types such as mbedtls_ssl_protocol_version (which formerly used small
values, but switched to using the protocol encoding as enum values in Mbed
TLS 3.2.0). Optimizing compilers know how to compile a switch into a lookup
table when the range warrants it.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2023-06-20 17:48:18 +02:00
..
2022-09-18 21:17:09 +02:00
2023-02-15 16:58:09 +08:00
2022-01-06 12:20:48 +01:00
2023-06-14 20:06:43 +01:00
2021-06-28 09:28:33 +01:00