mbedtls/programs/ssl
Gilles Peskine a30439a7f9 Fix off-by-one in buffer_size usage
The added null byte was accounted for twice, once by taking
opt.buffer_size+1 when allocating the buffer and once by taking opt.buffer-1
when filling the buffer. Make opt.buffer_size the size that is actually
read, it's less confusing that way.

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_server2.c Fix off-by-one in buffer_size usage 2022-04-13 11:24:38 +02:00
ssl_server.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +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