keyLog_callback: flush the descriptor to make sure it is written out

This commit is contained in:
Juliusz Sosinowicz 2023-09-11 19:34:24 +02:00
parent c1a49fef99
commit 948d7ae761

View File

@ -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);
}