mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-01 09:10:03 +00:00
fd235bc9df
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>
4 lines
104 B
Plaintext
4 lines
104 B
Plaintext
Bugfix
|
|
* Fix very high stack usage in SSL debug code. Reported by Maximilian
|
|
Gerhardt in #7804.
|