Skip to contentSkip to conversation

Increase TLC Control Channel Buffer Size

PATCH New Ning Wei 1 participant 1 message Mar 14, 2018

lore
Share & tools
lore

Ning Wei

author
#0 lore raw

PATCH 1/1 Increase TLC Control Channel Buffer Size

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.

---
 src/openvpn/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/common.h +1 -1
index 4e6f4809..7e9b5f3a 100644
@@ -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
Signature · 1 line
2.15.0.windows.1