Skip to content

Commit 948d7ae

Browse files
committed
keyLog_callback: flush the descriptor to make sure it is written out
1 parent c1a49fe commit 948d7ae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34625,6 +34625,7 @@ static void keyLog_callback(const WOLFSSL* ssl, const char* line )
3462534625
fp = XFOPEN("./MyKeyLog.txt", "a");
3462634626
XFWRITE( line, 1, strlen(line),fp);
3462734627
XFWRITE( (void*)&lf,1,1,fp);
34628+
XFFLUSH(fp);
3462834629
XFCLOSE(fp);
3462934630

3463034631
}

0 commit comments

Comments
 (0)