Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72758 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89328 invoked from network); 22 Feb 2014 13:12:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2014 13:12:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.169 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.213.169 mail-ig0-f169.google.com Received: from [209.85.213.169] ([209.85.213.169:38654] helo=mail-ig0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/62-00531-B42A8035 for ; Sat, 22 Feb 2014 08:12:44 -0500 Received: by mail-ig0-f169.google.com with SMTP id h18so1641946igc.0 for ; Sat, 22 Feb 2014 05:12:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7h/n5Aht2B7ek/F7bozxMsXjrQNxthgPRhggSm4IOBY=; b=MbYuW+K7OsMKpUj+MCiM1bdscubi7jreKXeAKPc8F24lOXkTnLgwNekeYDNQdxDTzY flt0shzH11yexy948IL4VnEW3SoyTOr+PodGoB054ItaltVjVEeDcJPBqicmIpq5642V oiMD73L1TGeHgdjF5WH+I2abdFmUZ6UDHm4fMwwcDvYFjGCpD8GOqrIrE6kVOhc9QYIg Ba+mXsKt1cPJGKGgsvY3cCA0c4OXUFZ1Xs+1UoGT0DLGHPF2/CgNkjv4xE85G4oYjgFt eWs0o6fEtonjLgyfno6UhT5aNDWSeQDu9NcYa6+O63CI599LJcmF0fiWOxQqTFn4urPI 4eUg== MIME-Version: 1.0 X-Received: by 10.42.228.65 with SMTP id jd1mr6995510icb.62.1393074760944; Sat, 22 Feb 2014 05:12:40 -0800 (PST) Received: by 10.50.34.131 with HTTP; Sat, 22 Feb 2014 05:12:40 -0800 (PST) In-Reply-To: References: Date: Sat, 22 Feb 2014 08:12:40 -0500 Message-ID: To: Chris Wright Cc: Pierre Joye , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1132e4cc4591b804f2fe7e5f Subject: Re: [PHP-DEV] Windows Peer Verification From: rdlowrey@gmail.com (Daniel Lowrey) --001a1132e4cc4591b804f2fe7e5f Content-Type: text/plain; charset=ISO-8859-1 > > > this patch and the effort you put in it. But I have to say that I am > > not in favor of doing that in 5.6.0 and not only for this area in any > > other major version. A more global approach will be more beneficial > > and may bring less confusion to our users. It will also reduce support > > requests from windows users as well, who are following the numerous > > documentation out there about working with openssl on windows, from > > various areas. > > I hear what you are saying and I don't disagree. This is only really > intended to prevent the breakages that the recent changes would cause > for Windows users. I can see how it could be considered a band-aid fix > and may be viewed as undesirable in this respect, but I don't view > this fix as preventing your proposed global approach, merely buying > some time to do it properly. > > I like this patch because it doesn't impact the rest of the stream context ecosystem. Basically the windows certifcate store only comes into play in the following scenario: - No "cafile" or "capath" specified in the stream context - No openssl.cafile or openssl.capath ini directive specified The interface presented to end-users is transparent and works exactly the same way externally regardless of OS. Pierre: if we can demonstrate minimal/no performance differential in windows while not changing the outward facing API would you still be uncomfortable with integrating this patch (or reasonable derivation) for 5.6? I'm just a bit concerned about an impending flood of "My SSL doesn't work in windows!" bug reports in 5.6 ... Obviously this is more of a near-term patch to avoid interruptions and breakage for windows users. The goal should definitely be creating a unified API without mixing and matching the various OS-specific functionality together in a convoluted #ifdef hell. > At the end, I would prefer to have full support of the Windows Crypto > APIs and OpenSSL using one single and unified APIs. The new crypto > APIs could be a good base for that. We can then provide two builds, > one for openssl and one for the Windows Crypto API support. Totally agree. I've been poking around at the pecl crypto API recently and it seems like a good place to start. --001a1132e4cc4591b804f2fe7e5f--