From owner-svn-ports-head@freebsd.org Sat Dec 10 20:09:19 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB854C70E28; Sat, 10 Dec 2016 20:09:19 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BADF2145B; Sat, 10 Dec 2016 20:09:19 +0000 (UTC) (envelope-from brnrd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBAK9I8j027345; Sat, 10 Dec 2016 20:09:18 GMT (envelope-from brnrd@FreeBSD.org) Received: (from brnrd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBAK9Ix4027344; Sat, 10 Dec 2016 20:09:18 GMT (envelope-from brnrd@FreeBSD.org) Message-Id: <201612102009.uBAK9Ix4027344@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brnrd set sender to brnrd@FreeBSD.org using -f From: Bernard Spil Date: Sat, 10 Dec 2016 20:09:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r428320 - head/security/p5-Crypt-SSLeay/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Dec 2016 20:09:20 -0000 Author: brnrd Date: Sat Dec 10 20:09:18 2016 New Revision: 428320 URL: https://svnweb.freebsd.org/changeset/ports/428320 Log: security/p5-Crypt-SSLeay: Fix build without SSLv2/3 - Add patch to fix build without SSLv2/3 Approved by: SSL blanket Added: head/security/p5-Crypt-SSLeay/files/ head/security/p5-Crypt-SSLeay/files/patch-SSLeay.xs (contents, props changed) Added: head/security/p5-Crypt-SSLeay/files/patch-SSLeay.xs ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Crypt-SSLeay/files/patch-SSLeay.xs Sat Dec 10 20:09:18 2016 (r428320) @@ -0,0 +1,25 @@ +--- SSLeay.xs.orig 2014-04-23 22:36:24 UTC ++++ SSLeay.xs +@@ -148,16 +148,21 @@ SSL_CTX_new(packname, ssl_version) + if(ssl_version == 23) { + ctx = SSL_CTX_new(SSLv23_client_method()); + } ++#ifndef OPENSSL_NO_SSL3 + else if(ssl_version == 3) { + ctx = SSL_CTX_new(SSLv3_client_method()); + } ++#endif + else { + #ifndef OPENSSL_NO_SSL2 + /* v2 is the default */ + ctx = SSL_CTX_new(SSLv2_client_method()); +-#else ++#elif !defined(OPENSSL_NO_SSL3) + /* v3 is the default */ + ctx = SSL_CTX_new(SSLv3_client_method()); ++#else ++ /* v23 is the default */ ++ ctx = SSL_CTX_new(SSLv23_client_method()); + #endif + } +