mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
keyLog_callback: flush the descriptor to make sure it is written out
This commit is contained in:
@ -34625,6 +34625,7 @@ static void keyLog_callback(const WOLFSSL* ssl, const char* line )
|
|||||||
fp = XFOPEN("./MyKeyLog.txt", "a");
|
fp = XFOPEN("./MyKeyLog.txt", "a");
|
||||||
XFWRITE( line, 1, strlen(line),fp);
|
XFWRITE( line, 1, strlen(line),fp);
|
||||||
XFWRITE( (void*)&lf,1,1,fp);
|
XFWRITE( (void*)&lf,1,1,fp);
|
||||||
|
XFFLUSH(fp);
|
||||||
XFCLOSE(fp);
|
XFCLOSE(fp);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user