From 948d7ae7611dc728c38e56fdf2b7e63dfa7c3856 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Mon, 11 Sep 2023 19:34:24 +0200 Subject: [PATCH] keyLog_callback: flush the descriptor to make sure it is written out --- tests/api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/api.c b/tests/api.c index 32da35abf..1aae40f47 100644 --- a/tests/api.c +++ b/tests/api.c @@ -34625,6 +34625,7 @@ static void keyLog_callback(const WOLFSSL* ssl, const char* line ) fp = XFOPEN("./MyKeyLog.txt", "a"); XFWRITE( line, 1, strlen(line),fp); XFWRITE( (void*)&lf,1,1,fp); + XFFLUSH(fp); XFCLOSE(fp); }