]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Optimize TLS socket buffer for TLS_MAX_FRAGMENT_LEN
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 19 Aug 2013 07:50:57 +0000 (09:50 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 19 Aug 2013 07:50:57 +0000 (09:50 +0200)
src/libtls/tls_socket.c

index 4ba96400063b3a5e3c6b5eaad4c0296acfe93e45..19232750b125d4bcd5b6940255a3cae8ac68140a 100644 (file)
 /**
  * Buffer size for plain side I/O
  */
-#define PLAIN_BUF_SIZE 4096
+#define PLAIN_BUF_SIZE TLS_MAX_FRAGMENT_LEN
 
 /**
  * Buffer size for encrypted side I/O
  */
-#define CRYPTO_BUF_SIZE 4096
+#define CRYPTO_BUF_SIZE        TLS_MAX_FRAGMENT_LEN + 2048
 
 typedef struct private_tls_socket_t private_tls_socket_t;
 typedef struct private_tls_application_t private_tls_application_t;