Re: com php-src: Adds initial support to generate and work with ECC public key pair: ext/openssl/openssl.c ext/openssl/tests/029.phpt
ext/openssl/tests/ecc.phpt ext/openssl/tests/openssl_pkey_export_basic.phpt ext/openssl/tests/openssl_pkey_get_

From: Date: Wed, 29 Jun 2016 10:26:08 +0000
Subject: Re: com php-src: Adds initial support to generate and work with ECC public key pair: ext/openssl/openssl.c ext/openssl/tests/029.phpt
ext/openssl/tests/ecc.phpt ext/openssl/tests/openssl_pkey_export_basic.phpt ext/openssl/tests/openssl_pkey_get_
References: 1 2 3 4 5 6  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92714@lists.php.net to get a copy of this message
Forgot to clarify one thing. These tests that I disabled were new tests so it's not like I would disable existing ones that stopped working. They haven't worked on your platform since they were introduced so I don't see anything wrong on disabling them and then re-enable them after they are tested on the failed platform. Of course you right that it would be wrong to disable working tests that would stop working but that wasn't the case. Cheers Jakub On Wed, Jun 29, 2016 at 10:58 AM, Jakub Zelenka <bukka@php.net> wrote: > Hi, > > Looking at the test and there should be couple of more checks so it seems > to me that it will need some work. It also relies on all curves to be > always available which needs probably a bit more testing. The name of the > test also doesn't match the new naming. For that reason I'm going to delete > the test completely and will be doing a bit more testing during the beta > stage and add a new one then. I will remove it later today or tomorrow. > > Cheers > > Jakub > > On Wed, Jun 29, 2016 at 9:55 AM, Dmitry Stogov <dmitry@zend.com> wrote: > >> Please, never disable failed tests :( >> >> Now only one test fails, but it fails on both Linux-32 and Linux-64. >> >> >> $ cat ../ext/openssl/tests/029.diff >> >> 004+ [key] => -----BEGIN PUBLIC KEY----- >> 005+ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPq4hbIWHvB51rdWr8ejrjWo4qVNW >> 006+ VugYFtPg/xLQw0mHkIPZ4DvKsqOTOnMoezkbSmVVMuwz9flvnqHGmQvmug== >> 004- [key] => -----BEGIN PUBLIC KEY-----%a >> 022- [key] => -----BEGIN PUBLIC KEY-----%a >> 024+ [key] => -----BEGIN PUBLIC KEY----- >> 025+ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPq4hbIWHvB51rdWr8ejrjWo4qVNW >> 026+ VugYFtPg/xLQw0mHkIPZ4DvKsqOTOnMoezkbSmVVMuwz9flvnqHGmQvmug== >> 042- [key] => -----BEGIN PUBLIC KEY-----%a >> 046+ [key] => -----BEGIN PUBLIC KEY----- >> 047+ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPq4hbIWHvB51rdWr8ejrjWo4qVNW >> 048+ VugYFtPg/xLQw0mHkIPZ4DvKsqOTOnMoezkbSmVVMuwz9flvnqHGmQvmug== >> 068- [key] => -----BEGIN PUBLIC KEY-----%a >> 074+ [key] => -----BEGIN PUBLIC KEY----- >> 075+ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPq4hbIWHvB51rdWr8ejrjWo4qVNW >> 076+ VugYFtPg/xLQw0mHkIPZ4DvKsqOTOnMoezkbSmVVMuwz9flvnqHGmQvmug== >> 088- [key] => -----BEGIN PUBLIC KEY-----%a >> 096+ [key] => -----BEGIN PUBLIC KEY----- >> 097+ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPq4hbIWHvB51rdWr8ejrjWo4qVNW >> 098+ VugYFtPg/xLQw0mHkIPZ4DvKsqOTOnMoezkbSmVVMuwz9flvnqHGmQvmug== >> 108- [key] => -----BEGIN PUBLIC KEY-----%a >> 118+ [key] => -----BEGIN PUBLIC KEY----- >> 119+ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAExFVQseDoN08ig58Rb26eOSIG6lcV >> 120+ dx8E85iRYwOh6QXJm4ubEeSDfZq0xOsLTVqHCxSiTDxWzp2yHVxcnDHpIg== >> 134- [key] => -----BEGIN PUBLIC KEY-----%a >> 146+ [key] => -----BEGIN PUBLIC KEY----- >> 147+ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEHL2Pb48EG4Q90hW9/ji1LsNRd/DX >> 148+ oscski/odJ0T+77d4i77YEsgeGbjOk7ipM5hsWWwiLuZQNAxMDIed3E0gw== >> 160- bool(true) >> 161- bool(true) >> 174+ >> 175+ Warning: openssl_pkey_get_details() expects parameter 1 to be >> resource, boolean given in >> /home/dmitry/php/php-master/ext/openssl/tests/029.php on line 81 >> 176+ bool(false) >> 177+ bool(false) >> >> If you like to test 32-bit PHP build on Linux, you should just build PHP >> as 32-bit binary on 64-bit Linux. >> >> >> CC='gcc -m32 -msse2' CXX='g++ -m32 -msse2' ./configure ... >> >> make >> >> >> Of curse, you might need to install some 32-bit RPM/DEBs >> >> >> Thanks. Dmitry. >> ------------------------------ >> *From:* jakub.php@gmail.com <jakub.php@gmail.com> on behalf of Jakub >> Zelenka <bukka@php.net> >> *Sent:* Tuesday, June 28, 2016 10:52:28 PM >> *To:* Dmitry Stogov >> *Cc:* php-cvs@lists.php.net >> *Subject:* Re: [PHP-CVS] com php-src: Adds initial support to generate >> and work with ECC public key pair: ext/openssl/openssl.c >> ext/openssl/tests/029.phpt ext/openssl/tests/ecc.phpt >> ext/openssl/tests/openssl_pkey_export_basic.phpt >> ext/openssl/tests/openssl_pkey_get_ >> >> Hi Dmitry, >> >> I disabled those tests till I find time to setup 32bit VM and test it >> there. >> >> Anyway if you manage to get the error diff file, that would be great as >> it allows me to make sure that I won't miss anything. >> >> Cheers >> >> Jakub >> >> On Tue, Jun 28, 2016 at 10:28 AM, Jakub Zelenka <bukka@php.net> wrote: >> >>> Hi Dmitry, >>> >>> Looks like a platform specific issue. I guess possibly 32bit as it works >>> fine on my Linux 64bit and Travis passes as well. >>> >>> Would you be ok to provide test diff file (after fail)? >>> >>> Cheers >>> >>> Jakub >>> >>> On Tue, Jun 28, 2016 at 9:30 AM, Dmitry Stogov <dmitry@zend.com> wrote: >>> >>>> Hi Jakob, >>>> >>>> >>>> The following tests are broken (tested on Linux 32-bit). >>>> >>>> >>>> > openssl_pkey_new() with EC key [ext/openssl/tests/029.phpt] >>>> > openssl_*() with OPENSSL_KEYTYPE_EC [ext/openssl/tests/ecc.phpt] >>>> >>>> >>>> Thanks. Dmitry. >>>> ------------------------------ >>>> *From:* Jakub Zelenka <bukka@php.net> >>>> *Sent:* Sunday, June 26, 2016 6:15:25 PM >>>> *To:* php-cvs@lists.php.net >>>> *Subject:* [PHP-CVS] com php-src: Adds initial support to generate and >>>> work with ECC public key pair: ext/openssl/openssl.c >>>> ext/openssl/tests/029.phpt ext/openssl/tests/ecc.phpt >>>> ext/openssl/tests/openssl_pkey_export_basic.phpt >>>> ext/openssl/tests/openssl_pkey_get_d... >>>> >>>> Commit: 9688138d38034c9558af45f1ebcd77c3ff88c420 >>>> Author: Dominic Luechinger <dol@cyon.ch> Wed, 15 Jun 2016 >>>> 22:31:42 +0200 >>>> Committer: Jakub Zelenka <bukka@php.net> Sun, 26 Jun 2016 >>>> 16:15:25 +0100 >>>> Parents: 8de8636a2b6dc331486284f1f037259bb7347768 >>>> Branches: master >>>> >>>> Link: >>>> >>>> http://git.php.net/?p=php-src.git;a=commitdiff;h=9688138d38034c9558af45f1ebcd77c3ff88c420 >>>> >>>> Log: >>>> Adds initial support to generate and work with ECC public key pair >>>> >>>> New features: >>>> - openssl_get_curve_names => list ECC curve names >>>> - generate a ECC public key pair >>>> - generate an CSR with an ECC key >>>> - export x,y,d params of ECC public/private key >>>> >>>> Thanks to @bukka for the review and feedback >>>> >>>> Changed paths: >>>> M ext/openssl/openssl.c >>>> A ext/openssl/tests/029.phpt >>>> A ext/openssl/tests/ecc.phpt >>>> M ext/openssl/tests/openssl_pkey_export_basic.phpt >>>> M ext/openssl/tests/openssl_pkey_get_details_basic.phpt >>>> >>>> >>> >> >

« previous php.cvs (#92714) next »