]> granicus.if.org Git - curl/commit
openssl: Disable file buffering for Win32 SSLKEYLOGFILE
authorJay Satiro <raysatiro@yahoo.com>
Sun, 10 Dec 2017 07:48:41 +0000 (02:48 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 10 Dec 2017 07:48:41 +0000 (02:48 -0500)
commit7ab4e7adb9143f3a3eef708693a526c93b2c97ee
treec6f2dd623dbe23fdae68f96bf21831fa68512722
parentb1b94305d896e4204159871318d6d08109b44764
openssl: Disable file buffering for Win32 SSLKEYLOGFILE

Prior to this change SSLKEYLOGFILE used line buffering on WIN32 just
like it does for other platforms. However, the Windows CRT does not
actually support line buffering (_IOLBF) and will use full buffering
(_IOFBF) instead. We can't use full buffering because multiple processes
may be writing to the file and that could lead to corruption, and since
full buffering is the only buffering available this commit disables
buffering for Windows SSLKEYLOGFILE entirely (_IONBF).

Ref: https://github.com/curl/curl/pull/1346#issuecomment-350530901
lib/vtls/openssl.c