aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2012-06-19 10:31:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-06-19 14:41:43 +0200
commite93e3bcb8217b0337219d0e6a2e9893e6bd4ea06 (patch)
tree949ae9c60f221f91727d6bdc872577f750b9ee3b /lib
parentfeaf8f959063bba5db3711c5c983c43eb3b18000 (diff)
curl_schannel.h: Use BUFSIZE as the initial buffer size if available
Make the Schannel implementation use libcurl's default buffer size for the initial received encrypted and decrypted data cache buffers. The implementation still needs to handle more data since more data might have already been received or decrypted during the handshake or a read operation which needs to be cached for the next read.
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_schannel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/curl_schannel.h b/lib/curl_schannel.h
index 2869b9263..7cdd2d142 100644
--- a/lib/curl_schannel.h
+++ b/lib/curl_schannel.h
@@ -93,8 +93,13 @@
#endif
+#ifdef BUFSIZE
+#define CURL_SCHANNEL_BUFFER_INIT_SIZE BUFSIZE
+#define CURL_SCHANNEL_BUFFER_STEP_SIZE BUFSIZE/2
+#else
#define CURL_SCHANNEL_BUFFER_INIT_SIZE 4096
#define CURL_SCHANNEL_BUFFER_STEP_SIZE 2048
+#endif
CURLcode Curl_schannel_connect(struct connectdata *conn, int sockindex);