Message-ID: <53284DA8.1010709@...1147...> Date: Tue, 18 Mar 2014 14:44:08 +0100 From: Jan Just Keijser MIME-Version: 1.0 References: <1395017376-24554-1-git-send-email-james@...515...> <20140317202910.GM16637@...1296...> <532775DD.4050106@...515...> <1CED409804E2164C8104F9E623B08B90155646D4C1@...1436...> <53281720.2050504@...1147...> <5328463F.7090704@...1114...> In-Reply-To: <5328463F.7090704@...1114...> Subject: Re: [Openvpn-devel] [PATCH] Set SSL_OP_NO_TICKET flag in SSL context for OpenSSL builds, to disable TLS stateless session resumption. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: openvpn-devel@lists.sourceforge.net Hi David, On 18/03/14 14:12, David Sommerseth wrote: > On 18/03/14 10:51, Jan Just Keijser wrote: >> On 18/03/14 10:39, Steffan Karger wrote: >>> Hi, >>> >>>> On 17/03/2014 23:23, James Yonan wrote: >>>> >>>> On 17/03/2014 14:29, Gert Doering wrote: >>>>> Right now, if I read configure.ac correct, we require 0.9.6 or later >>>>> (and check this only if pkg-config is available) - but obviously, >>>>> SSL_OP_NO_TICKET was added later on. >>>>> >>>>> Fix 1: only use SSL_OP_NO_TICKET if available Fix 2: require a more >>>>> recent OpenSSL version >>>> I would think an #ifdef should be fine. >>> SSL_OP_NO_TICKET was added in OpenSSL 0.9.8f / 1.0.0. The ECDH-patchset (for 2.4) already requires 0.9.8, so I would prefer to require 0.9.8f or newer for master/2.4, but just add #ifdef's for 2.3. >>> >>> >> I disagree. It is not safe to assume that the #ifdef is bound to a >> particular version of Openssl; for example, on my Centos 6.5 box I have >> openssl 1.0.1e yet the define >> #define SSL_OP_NO_TICKET 0x00004000L >> is NOT present in the system ssl.h file. > I just checked RHEL 6.5 and ScientificLinux 6.4 > (openssl-1.0.1e-16.el6_5.4) ... they both have it this: > > # grep SSL_OP_NO_TICKET /usr/include/openssl/* > /usr/include/openssl/ssl.h:#define SSL_OP_NO_TICKET 0x00004000L > this is most odd - I just checked a few other machines (CentOS 6.5) and there the SSL_OP_NO_TICKET is present. I then reinstalled openssl on the 'flawed' box and now it is present also. So it seems I spoke too soon... sorry for the noise, although I must say that I'm still in favour of checking for the existence of an IFDEF instead of relying on a particular version... cheers, JJK