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
dtls_client.c
dtls_server.c
mini_client.c
ssl_client1.c
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
ssl_mail_client.c
ssl_pthread_server.c
ssl_server2.c Fix off-by-one in buffer_size usage 2022-04-13 11:24:38 +02:00
ssl_server.c
ssl_test_common_source.c
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