[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 50/125: openssl: Disable file buffering for Win32 S
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 50/125: openssl: Disable file buffering for Win32 SSLKEYLOGFILE |
Date: |
Sun, 21 Jan 2018 23:41:45 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 7ab4e7adb9143f3a3eef708693a526c93b2c97ee
Author: Jay Satiro <address@hidden>
AuthorDate: Sun Dec 10 02:48:41 2017 -0500
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 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 4659c7997..6d9e81d3b 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -948,7 +948,11 @@ static int Curl_ossl_init(void)
if(keylog_file_name && !keylog_file_fp) {
keylog_file_fp = fopen(keylog_file_name, FOPEN_APPENDTEXT);
if(keylog_file_fp) {
+#ifdef WIN32
+ if(setvbuf(keylog_file_fp, NULL, _IONBF, 0)) {
+#else
if(setvbuf(keylog_file_fp, NULL, _IOLBF, 4096)) {
+#endif
fclose(keylog_file_fp);
keylog_file_fp = NULL;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 44/125: openssl: improve data-pending check for https proxy, (continued)
- [GNUnet-SVN] [gnurl] 44/125: openssl: improve data-pending check for https proxy, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 29/125: curl-config: add --ssl-backends, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 23/125: sasl_getmesssage: make sure we have a long enough string to pass, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 24/125: libssh: remove dead code in sftp_qoute, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 34/125: examples: move threaded-shared-conn.c to the "complicated" ones, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 33/125: RELEASE-NOTES: synced with b261c44e8, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 20/125: libssh: fixed dereference in statvfs access, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 27/125: threaded-shared-conn.c: fixed typo in commenta, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 26/125: threaded-shared-conn.c: new example, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 54/125: tests: mark data files as non-executable in git, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 50/125: openssl: Disable file buffering for Win32 SSLKEYLOGFILE,
gnunet <=
- [GNUnet-SVN] [gnurl] 51/125: mailmap: fixup two old git Author "aliases", gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 35/125: openldap: add commented out debug possibilities, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 53/125: tests: update .gitignore for libtests, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 69/125: krb5: fix a potential access of uninitialized memory, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 61/125: vtls: replaced getenv() with curl_getenv(), gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 58/125: curl.1: mention http:// and https:// as valid proxy prefixes, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 56/125: CURLOPT_DNS_LOCAL_IP4.3: fixed the seel also to not self-reference, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 30/125: configure: check for netinet/in6.h, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 37/125: include: get netinet/in.h before linux/tcp.h, gnunet, 2018/01/21
- [GNUnet-SVN] [gnurl] 45/125: curl: remove __EMX__ #ifdefs, gnunet, 2018/01/21