| Message ID | 52e860ea74ac958309368374049f14bd.squirrel@webmail.bi.invoca.ch |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director9.mail.ord1d.rsapps.net ([172.27.255.1]) by backend30.mail.ord1d.rsapps.net (Dovecot) with LMTP id RJzxG8vgl1pnDAAAIUCqbw for <patchwork@openvpn.net>; Thu, 01 Mar 2018 06:15:23 -0500 Received: from proxy2.mail.iad3a.rsapps.net ([172.27.255.1]) by director9.mail.ord1d.rsapps.net (Dovecot) with LMTP id PVSzB8vgl1p0SwAAalYnBA ; Thu, 01 Mar 2018 06:15:23 -0500 Received: from smtp8.gate.iad3a ([172.27.255.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy2.mail.iad3a.rsapps.net with LMTP id 6P+2Lsvgl1rnHQAABcWvHw ; Thu, 01 Mar 2018 06:15:23 -0500 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: smtp8.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=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=invoca.ch X-Classification-ID: d4da1796-1d41-11e8-9d49-525400b8fe03-1-1 Received: from [216.105.38.7] ([216.105.38.7:57272] helo=lists.sourceforge.net) by smtp8.gate.iad3a.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id EA/A3-21054-AC0E79A5; Thu, 01 Mar 2018 06:15:22 -0500 Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.89) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1erMAE-0009nR-2Y; Thu, 01 Mar 2018 11:14:18 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from <simon.matter@invoca.ch>) id 1erMAC-0009nL-BU for openvpn-devel@lists.sourceforge.net; Thu, 01 Mar 2018 11:14:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:MIME-Version:To:From:Subject:Date: Message-ID:Sender:Reply-To:Cc: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=dpr5rJ0FwJaxv0brmOqelNHINEqd6DxSYtcKIR+3+h4=; b=WCVu34kkEukQSXYSQoFKStTRn/ RhLUVrspWhwfq4qfLBOG3AJz41Ozi8oeK4Xt+PthCbgzM6qOuUAmp4rF7sFSps4KjZcUlQIP0G6BY wKLTBMHasmMMUf6wQc7COcyihyV1j1XWMZZwNFS4uA7SjM5KoMCQMhk7cyy4If5ec3Ss=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:MIME-Version:To:From:Subject:Date:Message-ID:Sender:Reply-To :Cc: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=dpr5rJ0FwJaxv0brmOqelNHINEqd6DxSYtcKIR+3+h4=; b=m Iss27S9kTi4t8njJu5TJrYAAJKR/Pav3OUfbCnN+h/659EIBZIn8crdlp0gKqGtyk37IEX7G3Z8Ra 6UD+c3qH6J15Xs6Ub0xPEzBr4SPb+EEN+UY/dNd4tPPixWzAifeCya9Pj5dNgtH03d0bgXGqKBvwl RgjJZkSCDPRmpclQ=; Received: from sfi-lb-mx.v20.lw.sourceforge.com ([172.30.20.201] helo=ns1.invoca.ch) by sfi-mx-1.v28.lw.sourceforge.com with esmtp (Exim 4.89) id 1erMA8-000Kz3-Br for openvpn-devel@lists.sourceforge.net; Thu, 01 Mar 2018 11:14:16 +0000 Received: from xxl.bi.corp.invoca.ch (pub151248199126.dh-hfc.datazug.ch [151.248.199.126]) by ns1.invoca.ch (Postfix) with ESMTP id BB6D53CF5 for <openvpn-devel@lists.sourceforge.net>; Thu, 1 Mar 2018 12:14:06 +0100 (CET) Received: from webmail.bi.invoca.ch (localhost [127.0.0.1]) by xxl.bi.corp.invoca.ch (Postfix) with ESMTP id 6085542CEF for <openvpn-devel@lists.sourceforge.net>; Thu, 1 Mar 2018 12:14:06 +0100 (CET) Received: from 157.161.91.32 (SquirrelMail authenticated user simix) by webmail.bi.invoca.ch with HTTP; Thu, 1 Mar 2018 12:14:06 +0100 Message-ID: <52e860ea74ac958309368374049f14bd.squirrel@webmail.bi.invoca.ch> Date: Thu, 1 Mar 2018 12:14:06 +0100 From: "Simon Matter" <simon.matter@invoca.ch> To: openvpn-devel@lists.sourceforge.net User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20180301121406_85250" X-Priority: 3 (Normal) Importance: Normal X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 1.3 RCVD_IN_RP_RNBL RBL: Relay in RNBL, https://senderscore.org/blacklistlookup/ [151.248.199.126 listed in bl.score.senderscore.com] 3.6 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [151.248.199.126 listed in zen.spamhaus.org] X-Headers-End: 1erMA8-000Kz3-Br Subject: [Openvpn-devel] tls fix for upcoming 2.4.5 X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
[Openvpn-devel] tls fix for upcoming 2.4.5
|
|
Commit Message
Simon Matter
March 1, 2018, 12:14 a.m. UTC
Hi, I've just done some test builds with 2.4.5 tagged version. Attached patch makes it build with older systems. Do you see any issue with the change? Regards, Simon ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Comments
Hi, On Thu, Mar 01, 2018 at 12:14:06PM +0100, Simon Matter wrote: > I've just done some test builds with 2.4.5 tagged version. > > Attached patch makes it build with older systems. Do you see any issue > with the change? Which SSL library version needs this? (I thought we have test systems for everything we officially support, plus a few more to catch avoidable LibreSSL breakage etc) gert
Hi, On Thu, Mar 01, 2018 at 12:14:06PM +0100, Simon Matter wrote: > I've just done some test builds with 2.4.5 tagged version. > > Attached patch makes it build with older systems. Do you see any issue > with the change? As a side note: this won't make 2.4.5 release, which is already "mostly done" (things are built, release announcement coming) - but if it's needed I see no issue with having it in 2.4.6, and release that "quicker than only in 5 month time" :-) gert
> Hi, > > On Thu, Mar 01, 2018 at 12:14:06PM +0100, Simon Matter wrote: >> I've just done some test builds with 2.4.5 tagged version. >> >> Attached patch makes it build with older systems. Do you see any issue >> with the change? > > Which SSL library version needs this? > > (I thought we have test systems for everything we officially support, plus > a few more to catch avoidable LibreSSL breakage etc) I saw that the #ifdefs were forgotten there, because they exist in other places of the same file but didn't make it into the separate more recent commit. Anyway, it's for RHEL5, which is still supported for RedHat customers or CERN Linux 5 users (SLC5). I know OpenVPN officially doesn't care for it anymore but I do :-) Regards, Simon ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
On Thu, Mar 1, 2018 at 6:14 AM, Simon Matter <simon.matter@invoca.ch> wrote: > Hi, > > I've just done some test builds with 2.4.5 tagged version. > > Attached patch makes it build with older systems. Do you see any issue > with the change? .. from the attachment > --- openvpn-2.4.5/src/openvpn/openssl_compat.h.orig 2018-02-28 21:56:54.000000000 +0100 > +++ openvpn-2.4.5/src/openvpn/openssl_compat.h 2018-03-01 11:44:57.000000000 +0100 > @@ -672,14 +672,18 @@ > { > return TLS1_VERSION; > } > +#ifdef SSL_OP_NO_TLSv1_1 > if (!(sslopt & SSL_OP_NO_TLSv1_1)) > { > return TLS1_1_VERSION; > } > +#endif > +#ifdef SSL_OP_NO_TLSv1_2 > if (!(sslopt & SSL_OP_NO_TLSv1_2)) > { > return TLS1_2_VERSION; > } > +#endif > return 0; > } > > #endif /* SSL_CTX_get_min_proto_version */ These ifdefs are needed for older openssl (e.g., 0.9.8), but how did we miss it? Turns out commit 2d705accea3e538a555631ef7c39eb4bc4fd4acf cherry-picked from f8a92a4393a was not fully ripe.. As we do not support Windows build using pre 1.0 openssl, this is the only change needed. So ACK, assuming a commit message and Author: may be slapped on during merge. Acked-by: Selva Nair <selva.nair@gmail.com> Selva ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Hi, > >> --- openvpn-2.4.5/src/openvpn/openssl_compat.h.orig 2018-02-28 21:56:54.000000000 +0100 >> +++ openvpn-2.4.5/src/openvpn/openssl_compat.h 2018-03-01 11:44:57.000000000 +0100 >> @@ -672,14 +672,18 @@ >> { >> return TLS1_VERSION; >> } >> +#ifdef SSL_OP_NO_TLSv1_1 >> if (!(sslopt & SSL_OP_NO_TLSv1_1)) >> { >> return TLS1_1_VERSION; >> } >> +#endif >> +#ifdef SSL_OP_NO_TLSv1_2 >> if (!(sslopt & SSL_OP_NO_TLSv1_2)) >> { >> return TLS1_2_VERSION; >> } >> +#endif >> return 0; >> } >> >> #endif /* SSL_CTX_get_min_proto_version */ > > These ifdefs are needed for older openssl (e.g., 0.9.8), but how did we miss it? > > Turns out commit 2d705accea3e538a555631ef7c39eb4bc4fd4acf cherry-picked > from f8a92a4393a was not fully ripe.. > > As we do not support Windows build using pre 1.0 openssl, this is the > only change needed. So ACK, assuming a commit message and Author: may > be slapped on during merge. > > Acked-by: Selva Nair <selva.nair@gmail.com> Forgot to add: 2.4 only. Master is good as is. Selva ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Your patch has been applied to the release/2.4 branch.
(I've added a commit message explaining what Selva wrote about the
cherrypick etc., setting you as author)
commit 88abb911ea22a306e87fba58410da45c2baad57f
Author: Simon Matter
Date: Fri Mar 2 08:49:31 2018 +0100
Add missing #ifdef SSL_OP_NO_TLSv1_1/2
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <52e860ea74ac958309368374049f14bd.squirrel@webmail.bi.invoca.ch>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg16588.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--- openvpn-2.4.5/src/openvpn/openssl_compat.h.orig 2018-02-28 21:56:54.000000000 +0100 +++ openvpn-2.4.5/src/openvpn/openssl_compat.h 2018-03-01 11:44:57.000000000 +0100 @@ -672,14 +672,18 @@ { return TLS1_VERSION; } +#ifdef SSL_OP_NO_TLSv1_1 if (!(sslopt & SSL_OP_NO_TLSv1_1)) { return TLS1_1_VERSION; } +#endif +#ifdef SSL_OP_NO_TLSv1_2 if (!(sslopt & SSL_OP_NO_TLSv1_2)) { return TLS1_2_VERSION; } +#endif return 0; } #endif /* SSL_CTX_get_min_proto_version */