mbedtls/programs/ssl
Gilles Peskine 736d91dae6 Fix buffer size calculation
Make sure that buf always has enough room for what it will contain. Before,
this was not the case if the buffer was smaller than the default response,
leading to memory corruption in ssl_server2.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-04-13 11:24:38 +02:00
..
CMakeLists.txt Merge pull request #3897 from d3zd3z/fix-cmake28 2021-01-26 13:35:56 +01:00
dtls_client.c Actually use the READ_TIMEOUT_MS in the sample DTLS client and server 2021-03-15 16:43:08 -04:00
dtls_server.c Fix inaccurate comment in sample DTLS server 2021-03-15 16:43:27 -04:00
mini_client.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_client1.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_client2.c Add missing dependencies on MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED 2022-01-26 07:45:43 -05:00
ssl_context_info.c Refactor ssl_context_info time printing 2022-03-04 15:25:42 -05:00
ssl_fork_server.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_mail_client.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_pthread_server.c Fix printf format issue in programs 2021-03-17 13:08:10 +00:00
ssl_server.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl_server2.c Fix buffer size calculation 2022-04-13 11:24:38 +02:00
ssl_test_common_source.c Use distinct variables for distinct purposes 2021-07-08 10:30:38 +02:00
ssl_test_lib.c programs/ssl: Fix compile errors when MBEDTLS_HAVE_TIME is not defined 2022-03-04 15:25:42 -05:00
ssl_test_lib.h programs/ssl: Fix compile errors when MBEDTLS_HAVE_TIME is not defined 2022-03-04 15:25:42 -05:00