Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54094 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62847 invoked from network); 19 Jul 2011 22:54:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2011 22:54:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:40585] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/81-48320-E2B062E4 for ; Tue, 19 Jul 2011 18:54:39 -0400 Received: by yxk8 with SMTP id 8so2173392yxk.29 for ; Tue, 19 Jul 2011 15:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=wdawdFaw8qOfjZgUyJPEMUyytjQWL74zn6ti/l8LpeM=; b=KIJD8uLggWvpX7IeLQWS18UTj+biTl4Rqw7ITbmxSa4lo3pMwPSVDmf+j1vkP2Q0Jb w6aDRM2I1zJfow88gCplUGaf1BVvl6kw2I24gSvgxJ1RnfLTLG0Wb3YELBP8pT32rQv8 7Sd2QrwBcqXwQs80Ip7EBzr3oGcWt5uwbUU4Y= MIME-Version: 1.0 Received: by 10.150.53.19 with SMTP id b19mr7238516yba.37.1311116075422; Tue, 19 Jul 2011 15:54:35 -0700 (PDT) Received: by 10.147.34.16 with HTTP; Tue, 19 Jul 2011 15:54:35 -0700 (PDT) In-Reply-To: <37923B5A-3A77-47EA-8319-A23D3C1DFE5B@macvicar.net> References: <37923B5A-3A77-47EA-8319-A23D3C1DFE5B@macvicar.net> Date: Wed, 20 Jul 2011 00:54:35 +0200 Message-ID: To: Scott MacVicar Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Subverting OpenSSL library function with Windows alternatives From: pierre.php@gmail.com (Pierre Joye) Scott, On Wed, Jul 20, 2011 at 12:35 AM, Scott MacVicar wrote= : > Just noticed a commit from Pierre last week http://svn.php.net/viewvc?vie= w=3Drevision&revision=3D313112 which changed OpenSSL to use a special Windo= ws API call for gathering random data. > > I've reverted this change so we can discuss this further. There is nothing to discuss. The Windows implementation is just as safe and is much faster than the OpenSsl API. > I disagree with advertising a library function and changing it to use som= ething else. Especially when this is around random data / encryption. The O= penSSL library has been audited externally, if there is a better alternativ= e then this patch should go upstream rather than being hacked into PHP. I disagreed with the initial implementation of this function in the 1st place, for many reasons that we discussed back then. But you still applied it. Now I don't want to have windows applications behind yet again slower because of that and this change greatly improve this function. So we keep it. Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org