mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-20 12:40:47 +00:00
ssl_client2: Fix early data log
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
139a4185b1
commit
7201bc6b05
@ -3072,16 +3072,16 @@ reconnect:
|
|||||||
frags++;
|
frags++;
|
||||||
written += ret;
|
written += ret;
|
||||||
} while (written < len);
|
} while (written < len);
|
||||||
}
|
|
||||||
|
|
||||||
end_of_early_data:
|
end_of_early_data:
|
||||||
|
|
||||||
buf[written] = '\0';
|
buf[written] = '\0';
|
||||||
mbedtls_printf(
|
mbedtls_printf(
|
||||||
" %" MBEDTLS_PRINTF_SIZET " bytes of early data written in %" MBEDTLS_PRINTF_SIZET " fragments\n\n%s\n",
|
" %" MBEDTLS_PRINTF_SIZET " bytes of early data written in %" MBEDTLS_PRINTF_SIZET " fragments\n\n%s\n",
|
||||||
written,
|
written,
|
||||||
frags,
|
frags,
|
||||||
(char *) buf);
|
(char *) buf);
|
||||||
|
}
|
||||||
#endif /* MBEDTLS_SSL_EARLY_DATA */
|
#endif /* MBEDTLS_SSL_EARLY_DATA */
|
||||||
|
|
||||||
while ((ret = mbedtls_ssl_handshake(&ssl)) != 0) {
|
while ((ret = mbedtls_ssl_handshake(&ssl)) != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user