From patchwork Fri Mar 16 05:40:59 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: 273 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director12.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net (Dovecot) with LMTP id y0KXF/rzq1qzJAAAIUCqbw for ; Fri, 16 Mar 2018 12:42:34 -0400 Received: from proxy10.mail.ord1d.rsapps.net ([172.30.191.6]) by director12.mail.ord1d.rsapps.net (Dovecot) with LMTP id q55RF/rzq1ryCQAAIasKDg ; Fri, 16 Mar 2018 12:42:34 -0400 Received: from smtp2.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy10.mail.ord1d.rsapps.net with LMTP id YGH1Fvrzq1rTZwAAfSg8FQ ; Fri, 16 Mar 2018 12:42:34 -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: smtp2.gate.ord1d.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: 068e651e-2939-11e8-978c-5254004a0287-1-1 Received: from [216.105.38.7] ([216.105.38.7:25801] helo=lists.sourceforge.net) by smtp2.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 98/DD-24666-AF3FBAA5; Fri, 16 Mar 2018 12:42:34 -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=SN/iSX7bwokPJrJrauUqhpSM85 ajSiieSzpePqXEnX5R3FGo4t4rqlSlOMFNLTIBvVAb+pSgdFSdT687FaFPMO/7H3AjZIW4TVZ0D77 7DnjgNHOALOW3waJ3u3jG9XPVqeKaHwxUJcbkfj8NplIBz5abWd+NJD+J90BlbjTJQ8I=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1ewsQ4-0005Fc-8H; Fri, 16 Mar 2018 16:41:28 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ewsQ3-0005FU-C8 for openvpn-devel@lists.sourceforge.net; Fri, 16 Mar 2018 16:41:27 +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=T37+TpYkhVhN6V1lCty84+Ec7M d4i59bSc5gchJju54ef0w1CQh0qaEtB/v5gvEjdNURDAQeadzM+MPRyeL7eQsXxj464ApNg/DQFXN GeMiRPYuG9q23xfBrOpVC61Unuf8Ix16wjZmNL9Z1JmLOBuxxpFsUQI/4xNoKxppPYjM=; 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=NYte13n5xwWktliuLRvSQNefkD F7/927Y1zREPdhQOyOYHmqq9by1g80KTM5+PoRFPFrnMHf9PsEpmKKE8ec6bjy8YVTWnd/QJqZI8x qWjtmexH3I2KOuooLzqeoFcyElaOKFJCybpht2iKnhPh6a44hd/M9Azs+3dMmUK114SE=; Received: from sfi-lb-mx.v20.lw.sourceforge.com ([172.30.20.201] helo=sonic304-11.consmr.mail.bf2.yahoo.com) by sfi-mx-1.v28.lw.sourceforge.com with esmtp (Exim 4.90_1) id 1ewsQ1-00HVyV-IZ for openvpn-devel@lists.sourceforge.net; Fri, 16 Mar 2018 16:41:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1521218474; bh=IUGt/64tDVCq4nZZVsb6WedWqgGHYjWe+dwM8S20yiM=; h=From:To:Cc:Subject:Date:From:Subject; b=r2bYTh8r/cHcFxlVeh73qJnQRUy90FVJiAQqxMNKwG7xY7qRf4Tr9RC8CSngZ25IeQvCIM427Iy4xk/kdwVk1hbTwDvKI3U3WbZXDwGocdJ0l59uoGOY9eWmNclw9Ae75d8BJFZpC86b/4hwMWHFGr5lIX3X79N7Jp9SE9+MEKmjrlPsFiEp99sSUadbt6fG3xpryEwquqn+Ri9HIXSD04OZH3aXFkyHnXAbZXZX7nPPKqqUGcPmx1Qi1sfuvaDvp01Cn0esQBA/90wWLKjcZG/vjgUQTJOL2u1OVJb2JEOMyC4LyBKLmwU9FYaq9DvEmBqGUZLPSSJFk0xrtSImsA== X-YMail-OSG: SZ1Oow8VM1m6VwXWNjDDu8qqe4N94BEyw__wfFdxV9AuMFeQdO8aMTTSGkbCb3d bmr.Qn5fF68jblfjhfiiAI76lyZYkK9ZnJ4rXEklJBjt9SI9qcZwCSwbEKaLd30FZeRznl.2bnOC yZnlMU3XrPs9LSd06k_XF5ycnXI7Xt2inilJlLHfgUXg19ORg2C_bduLFlVH_Hmd0m3v4A.X8.rJ SVuEV9D3jrXMnQMLv9wbPoWJ17oWcu6LhVqWdiPLKKIBzGNg9PVlGZX0uWlfYvBuHmJfJ8TU.kNU CAfl0lt8ZErrGUvgIWNpEsfjMws15XPHE4ccwtkFKGtZQNw9LxzB1uSN99lMtttXXzjceSJn7aOa nJdB6P4tPHkQ.QxnkHo5XzvwIaihM9WJjhtyluRRRlZvlrD72C6ne5J1AYb4smh9W8ibsf6jktPN r3jwKVBoUAtoZ8uMEMHlVUn7krUqaqw0HBNQc_e6cpCJiDL.TIQ440rfHiRDexIB6jWf8gvipZQt JnxMANvDdMQbL_U814.wbfj4Kbk94b30W0PwyKF4b Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Fri, 16 Mar 2018 16:41:14 +0000 Received: from 131.107.174.113 (EHLO NINWE-DEV.redmond.corp.microsoft.com) ([131.107.174.113]) by smtp422.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 021242e1f6078eed3a20e87ae43ce6c1; Fri, 16 Mar 2018 16:41:10 +0000 (UTC) To: openvpn-devel@lists.sourceforge.net Date: Fri, 16 Mar 2018 09:40:59 -0700 Message-Id: <20180316164059.9120-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: 1ewsQ1-00HVyV-IZ Subject: [Openvpn-devel] [PATCH] Increase TLS 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