ssl_client2: Fix early data log

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2024-03-08 15:45:36 +01:00
parent 139a4185b1
commit 7201bc6b05

View File

@ -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) {