From owner-freebsd-python@freebsd.org Mon Jun 12 19:03:34 2017 Return-Path: Delivered-To: freebsd-python@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 59055C0A6CF for ; Mon, 12 Jun 2017 19:03:34 +0000 (UTC) (envelope-from franc@tcsaf.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 406A57A17D for ; Mon, 12 Jun 2017 19:03:34 +0000 (UTC) (envelope-from franc@tcsaf.com) Received: by mailman.ysv.freebsd.org (Postfix) id 3CC34C0A6CE; Mon, 12 Jun 2017 19:03:34 +0000 (UTC) Delivered-To: python@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 3C53FC0A6CC for ; Mon, 12 Jun 2017 19:03:34 +0000 (UTC) (envelope-from franc@tcsaf.com) Received: from p3plsmtpa06-08.prod.phx3.secureserver.net (p3plsmtpa06-08.prod.phx3.secureserver.net [173.201.192.109]) (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 20F547A17C for ; Mon, 12 Jun 2017 19:03:33 +0000 (UTC) (envelope-from franc@tcsaf.com) Received: from sheridan.b5.tcsaf.com ([98.29.211.58]) by :SMTPAUTH: with SMTP id KUZrdG7Y5ZgSlKUZsd92Rj; Mon, 12 Jun 2017 12:00:40 -0700 Received: by sheridan.b5.tcsaf.com (Postfix, from userid 58) id 27312F7C; Mon, 12 Jun 2017 15:00:39 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sheridan.b5.tcsaf.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.1 Received: from gkar.b5.tcsaf.com (unknown [192.168.181.10]) by sheridan.b5.tcsaf.com (Postfix) with ESMTPS id 63C1BF78 for ; Mon, 12 Jun 2017 15:00:37 -0400 (EDT) To: python@freebsd.org From: "Thomas Francis, Jr." Subject: Python 2.7 NOT broken with openssl-devel Message-ID: <2a940f47-7481-4f04-d37f-55426dc672c1@tcsaf.com> Date: Mon, 12 Jun 2017 15:00:37 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfMzF63IeWURoECFikV76wNplkuU4HEr8Fih0fvQLT04G/FZSajV6xAbslG4+47ni4q0S0T1mOB8+SA730aLNJ+lcv1DJRh33A3GUc3dynWlwvIdAAn4g 9Hnr7AZwTgoBaEPI5NEgbrNWmSNIirlhdYf6RhnG6UHqa72oIMDDEJAm X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2017 19:03:34 -0000 Please note the Python 2.7 port is NOT broken with the openssl-devel port. One does need to compile the openssl-devel port with NEXTPROTONEG option enabled, as there's a bug in how Python 2.7.13 determines if that's enabled or not. Or one could patch Modules/_ssl.c to detect it properly. I.e., instead of "#ifdef OPENSSL_NPN_NEGOTIATED" use "#ifndef OPENSSL_NO_NEXTPROTONEG". OPENSSL_NPN_NEGOTIATED is unconditionally defined in ssl.h.