[Openvpn-devel] Increase TLC Control Channel Buffer Size

Message ID 20180314234008.15112-1-xiaoningning@yahoo.com
State Superseded
Headers show
Series
  • [Openvpn-devel] Increase TLC Control Channel Buffer Size
Related show

Commit Message

Rolf Fokkens via Openvpn-devel March 14, 2018, 11:40 p.m.
Increase TLS_CHANNEL_BUF_SIZE to 4096. When the build is enabled with
ENABLE_PKCS11, the password field can be 4096.  The old size of
TLS_CHANNEL_BUF_SIZE was 2048, which is not enough.

Signed-off-by: Ning Wei <xiaoningning@yahoo.com>
---
 src/openvpn/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/src/openvpn/common.h b/src/openvpn/common.h
index 4e6f4809..7e9b5f3a 100644
--- a/src/openvpn/common.h
+++ b/src/openvpn/common.h
@@ -75,7 +75,7 @@  typedef unsigned long ptr_type;
  * maximum size of a single TLS message (cleartext).
  * This parameter must be >= PUSH_BUNDLE_SIZE
  */
-#define TLS_CHANNEL_BUF_SIZE 2048
+#define TLS_CHANNEL_BUF_SIZE 4096
 
 /*
  * This parameter controls the maximum size of a bundle