Message-ID: Date: Mon, 16 Mar 2026 12:59:59 +0100 MIME-Version: 1.0 References: <20260315184337.1541272-1-luca.boccassi@...277...> <20260315230620.1594780-1-luca.boccassi@...277...> <20260315230620.1594780-2-luca.boccassi@...277...> Content-Language: en-GB From: Arne Schwabe In-Reply-To: <20260315230620.1594780-2-luca.boccassi@...277...> Subject: Re: [Openvpn-devel] [PATCH v2 1/3] Increase TLS_CHANNEL_BUF_SIZE from 2048 to 8192 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: luca.boccassi@...277..., openvpn-devel@lists.sourceforge.net Am 16.03.26 um 00:05 schrieb luca.boccassi@...277...: > From: Luca Boccassi > > When authenticating via a JWT token 2048 bytes are not enough, which > breaks the auth process. In my local case the token is ~2100 bytes. > Bump the maximum harcoded size from 2k to 8k to leave some headroom. > > Signed-off-by: Luca Boccassi > --- > src/openvpn/common.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/openvpn/common.h b/src/openvpn/common.h > index aa7b7217..fbe6239a 100644 > --- a/src/openvpn/common.h > +++ b/src/openvpn/common.h > @@ -67,7 +67,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 8192 > > /* TLS control buffer minimum size > * This gets a definitive NACK from me. This will cause compatibility problems. It might work for your small setup where you can easily patch both sides but it is not a good when compatibility with other clients is important. We understand that user+pass is limited but this is not the right approach to overcome this limitation. Arne