From patchwork Wed Mar 14 12:40:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristof Provost via Openvpn-devel X-Patchwork-Id: 272 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director8.mail.ord1d.rsapps.net ([172.27.255.58]) by backend30.mail.ord1d.rsapps.net (Dovecot) with LMTP id e40RETOzqVpNVQAAIUCqbw for ; Wed, 14 Mar 2018 19:41:39 -0400 Received: from proxy15.mail.iad3a.rsapps.net ([172.27.255.58]) by director8.mail.ord1d.rsapps.net (Dovecot) with LMTP id o8mfCjOzqVowSwAAfY0hYg ; Wed, 14 Mar 2018 19:41:39 -0400 Received: from smtp11.gate.iad3a ([172.27.255.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy15.mail.iad3a.rsapps.net with LMTP id eLFBCDOzqVo1cgAAHi9b9g ; Wed, 14 Mar 2018 19:41:39 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp11.gate.iad3a.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=pass header.d=lists.sourceforge.net; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=yahoo.com; dmarc=pass (p=none; dis=none) header.from=lists.sourceforge.net X-Suspicious-Flag: NO X-Classification-ID: 3cee6202-27e1-11e8-ada5-5254005eb44a-1-1 Received: from [216.105.38.7] ([216.105.38.7:46808] helo=lists.sourceforge.net) by smtp11.gate.iad3a.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 6E/18-00817-233B9AA5; Wed, 14 Mar 2018 19:41:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:Message-Id:Date:To:Sender:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=vzLaH9S/XnTmpMB03jT/fw9cnLz0i6dFlCv9yxQfMjc=; b=bZeIxZNqJBiUnmHW5fz2VO7iVb R7w8VbZ6d8zay65NsIVH4BmtNNzEmB8X1UGzvuviCpvo4i8/g48sQ6fThikZrDKtB+e/sC07y1OO3 f/IAGKJXKIBg8XSd0I5t4aWBxKt6r8Q4jjpDPM8iRWzw5MWSXc0GWU8b0Xkl+pKSLDvA=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1ewG0c-00069V-9l; Wed, 14 Mar 2018 23:40:38 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ewG0a-00069O-Ie for openvpn-devel@lists.sourceforge.net; Wed, 14 Mar 2018 23:40:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IUGt/64tDVCq4nZZVsb6WedWqgGHYjWe+dwM8S20yiM=; b=miBwRBTxvxtt1qfMrogiWzLvFj 3DJePcLTAdSE0Q2S36yNT/Cc5yeFfwoKptapqLIcbXSB8A5ylLz9VJlKn2wtTtJekmkcheP7a36pm U6d3W6PTisKKGtqEy8099daPKzvEK3VMhs0v4V97gh0M3ux3fUKnre8/ECIrrEc2s4is=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IUGt/64tDVCq4nZZVsb6WedWqgGHYjWe+dwM8S20yiM=; b=NJ2U/PxC+XaIZqKaMXi5FFfACb s8/IDdxf00cafy4hNeoFRngNDCIn77xMb9yUPK6jf4jnDJXhbjRW49x8uNZlMHH1OyWTAcochZKFL UXf5KR+cbP8RzxVjfBm1b+lt5THOvMO1b5UoqGFuotwoCLU5MFUseWzjrdb7GSMsGRxE=; Received: from sfi-lb-mx.v20.lw.sourceforge.com ([172.30.20.201] helo=sonic301-22.consmr.mail.gq1.yahoo.com) by sfi-mx-3.v28.lw.sourceforge.com with esmtp (Exim 4.90_1) id 1ewG0Y-00BWK8-HB for openvpn-devel@lists.sourceforge.net; Wed, 14 Mar 2018 23:40:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1521070824; bh=IUGt/64tDVCq4nZZVsb6WedWqgGHYjWe+dwM8S20yiM=; h=From:To:Cc:Subject:Date:From:Subject; b=ucFHdNRd3HzVeYVlWxxG/ijMVgswuwmpKLDchKVEHTrTJTZAIRjTFaShXmkZiXmojfN8aQnhgUMl+QpV8luNrOeHxT9+hnjCLBs9P+PVCDZqJiCxQOZxt22pJl1Bqn0itQEr58hI1FpL+JAmAq9B6t0ce4f7tJKLFoo9ou5xQcpYvUaqokL+5ieXQp/KerIibmJoCPvxPIIKGdJ68/hCuXMXkSjao3i6Xthp1bwipxSrfbqoJOALrr3usBu5DW2HV4yvgia4jVG8leZRLVPjVJfKAvxwNDzBPJc3z+zXUz3x3jCnYiUsSOjkPYCczcEgLm7pQx32d8Dq3fqA146+Lg== X-YMail-OSG: wOLg1H4VM1kAS6l5lxVGCrV16LDxoQejLTutQfKXhorcG40P2m94ee0PkvemaL0 ugiDWlD5fdPpZZYgy.Ir9iGGkCIuKCwp_VhLxF2HnCVxOIqdit7Qze5XD1Am9eZbmye1_xiqX3cF QqF1MwYpvjUEkMgetVH2DQgFsptjzq1Di2ZOkVvMKAZnOaXW4NMW9D6pb_3Bopp.LRYpmk4p89Tk f1s4isKnok836Ki0GrSFjNkkJU5YQFcP609gun9ZSg_tkt8LjU1M8vIPiSK_AcSRa1IMIubkOmrA f9q.A6Pe2F3k54j99Yl1cO3uR4ClFaa79IC_Zu5CtfeQb8eRdBmxJ4FAZXSVgEETUgQobFecnzCf wODGDXPi9oAibKhjpKc6_7h8Xq2189hO2QgXuyCzQNyv8ayQ.UzL3QtI1gn_rRg.mzQpohsfzXRc 06Lcvbh9hOBtNpVqL0e6vbG4nK6ow.KaJiQiYCBNdoDPc37Bct3qtxCAEsT.EwC9Ko8saOi.MUVD .YBpuq5qxcQFJsZtlG7iyxUZbC.KlTSqWwuGOuYoq Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Wed, 14 Mar 2018 23:40:24 +0000 Received: from 131.107.147.241 (EHLO NINWE-DEV.redmond.corp.microsoft.com) ([131.107.147.241]) by smtp403.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID bc4f4c13f166044949448de9e46fb8e0; Wed, 14 Mar 2018 23:40:21 +0000 (UTC) To: openvpn-devel@lists.sourceforge.net Date: Wed, 14 Mar 2018 16:40:08 -0700 Message-Id: <20180314234008.15112-1-xiaoningning@yahoo.com> X-Mailer: git-send-email 2.15.0.windows.1 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (xiaoningning[at]yahoo.com) 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) 1.0 FORGED_YAHOO_RCVD 'From' yahoo.com does not match 'Received' headers -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1ewG0Y-00BWK8-HB Subject: [Openvpn-devel] [PATCH] Increase TLC Control Channel Buffer Size X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Ning Wei via Openvpn-devel From: Kristof Provost via Openvpn-devel Reply-To: Ning Wei MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox 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 --- 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 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