version 1.1.1.1, 2012/02/21 23:47:59
|
version 1.1.1.2, 2012/05/29 12:34:36
|
Line 10 if (OPENSSL_VERSION_NUMBER<0x009070af) die("skip");
|
Line 10 if (OPENSSL_VERSION_NUMBER<0x009070af) die("skip");
|
$cert = file_get_contents(dirname(__FILE__) . "/bug28382cert.txt"); |
$cert = file_get_contents(dirname(__FILE__) . "/bug28382cert.txt"); |
$ext = openssl_x509_parse($cert); |
$ext = openssl_x509_parse($cert); |
var_dump($ext['extensions']); |
var_dump($ext['extensions']); |
|
/* openssl 1.0 prepends the string "Full Name:" to the crlDistributionPoints array key. |
|
For now, as this is the one difference only between 0.9.x and 1.x, it's handled with |
|
placeholders to not to duplicate the test. When more diffs come, a duplication would |
|
be probably a better solution. |
|
*/ |
?> |
?> |
--EXPECTF-- |
--EXPECTF-- |
array(11) { |
array(11) { |
Line 20 array(11) {
|
Line 25 array(11) {
|
["nsCertType"]=> |
["nsCertType"]=> |
string(30) "SSL Client, SSL Server, S/MIME" |
string(30) "SSL Client, SSL Server, S/MIME" |
["crlDistributionPoints"]=> |
["crlDistributionPoints"]=> |
string(51) "URI:http://mobile.blue-software.ro:90/ca/crl.shtml | string(%d) "%AURI:http://mobile.blue-software.ro:90/ca/crl.shtml |
" |
" |
["nsCaPolicyUrl"]=> |
["nsCaPolicyUrl"]=> |
string(38) "http://mobile.blue-software.ro:90/pub/" |
string(38) "http://mobile.blue-software.ro:90/pub/" |