sixd Tue, 07 Feb 2012 01:15:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323105
Log:
Fix OpenSSL version-dependent diff. "Time Stamp signing" is not in openssl 0.9.
Skip current test for 0.9. New test for 0.9 approved by Stas
Changed paths:
U
php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic.phpt
A
php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
U
php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic.phpt
A
php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
U php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic.phpt
A php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
Modified: php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic.phpt 2012-02-06 23:52:42 UTC (rev 323104)
+++ php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic.phpt 2012-02-07 01:15:13 UTC (rev 323105)
@@ -1,7 +1,9 @@
--TEST--
openssl_x509_parse() basic test
--SKIPIF--
-<?php if (!extension_loaded("openssl")) print "skip"; ?>
+<?php if (!extension_loaded("openssl")) print "skip";
+if (OPENSSL_VERSION_NUMBER < 0x10000000) die("skip Output requires OpenSSL 1.0");
+?>
--FILE--
<?php
$cert = "file://" . dirname(__FILE__) . "/cert.crt";
Added: php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt 2012-02-07 01:15:13 UTC (rev 323105)
@@ -0,0 +1,276 @@
+--TEST--
+openssl_x509_parse() basic test for OpenSSL 0.9
+--SKIPIF--
+<?php if (!extension_loaded("openssl")) print "skip";
+if (OPENSSL_VERSION_NUMBER > 0x10000000) die("skip Output requires OpenSSL 0.9");
+?>
+--FILE--
+<?php
+$cert = "file://" . dirname(__FILE__) . "/cert.crt";
+
+var_dump(openssl_x509_parse($cert));
+var_dump(openssl_x509_parse($cert, false));
+?>
+--EXPECTF--
+array(12) {
+ ["name"]=>
+ string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]"
+ ["subject"]=>
+ array(5) {
+ ["C"]=>
+ string(2) "BR"
+ ["ST"]=>
+ string(17) "Rio Grande do Sul"
+ ["L"]=>
+ string(12) "Porto Alegre"
+ ["CN"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["hash"]=>
+ string(8) "%s"
+ ["issuer"]=>
+ array(5) {
+ ["C"]=>
+ string(2) "BR"
+ ["ST"]=>
+ string(17) "Rio Grande do Sul"
+ ["L"]=>
+ string(12) "Porto Alegre"
+ ["CN"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["version"]=>
+ int(2)
+ ["serialNumber"]=>
+ string(20) "12593567369101004962"
+ ["validFrom"]=>
+ string(13) "080630102843Z"
+ ["validTo"]=>
+ string(13) "080730102843Z"
+ ["validFrom_time_t"]=>
+ int(1214821723)
+ ["validTo_time_t"]=>
+ int(1217413723)
+ ["purposes"]=>
+ array(8) {
+ [1]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "sslclient"
+ }
+ [2]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "sslserver"
+ }
+ [3]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "nssslserver"
+ }
+ [4]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "smimesign"
+ }
+ [5]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(12) "smimeencrypt"
+ }
+ [6]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(7) "crlsign"
+ }
+ [7]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(3) "any"
+ }
+ [8]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "ocsphelper"
+ }
+ }
+ ["extensions"]=>
+ array(3) {
+ ["subjectKeyIdentifier"]=>
+ string(59) "DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D"
+ ["authorityKeyIdentifier"]=>
+ string(202) "keyid:DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D
+DirName:/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]
+serial:AE:C5:56:CC:72:37:50:A2
+"
+ ["basicConstraints"]=>
+ string(7) "CA:TRUE"
+ }
+}
+array(12) {
+ ["name"]=>
+ string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]"
+ ["subject"]=>
+ array(5) {
+ ["countryName"]=>
+ string(2) "BR"
+ ["stateOrProvinceName"]=>
+ string(17) "Rio Grande do Sul"
+ ["localityName"]=>
+ string(12) "Porto Alegre"
+ ["commonName"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["hash"]=>
+ string(8) "%s"
+ ["issuer"]=>
+ array(5) {
+ ["countryName"]=>
+ string(2) "BR"
+ ["stateOrProvinceName"]=>
+ string(17) "Rio Grande do Sul"
+ ["localityName"]=>
+ string(12) "Porto Alegre"
+ ["commonName"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["version"]=>
+ int(2)
+ ["serialNumber"]=>
+ string(20) "12593567369101004962"
+ ["validFrom"]=>
+ string(13) "080630102843Z"
+ ["validTo"]=>
+ string(13) "080730102843Z"
+ ["validFrom_time_t"]=>
+ int(1214821723)
+ ["validTo_time_t"]=>
+ int(1217413723)
+ ["purposes"]=>
+ array(8) {
+ [1]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "SSL client"
+ }
+ [2]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "SSL server"
+ }
+ [3]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(19) "Netscape SSL server"
+ }
+ [4]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(14) "S/MIME signing"
+ }
+ [5]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(17) "S/MIME encryption"
+ }
+ [6]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "CRL signing"
+ }
+ [7]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "Any Purpose"
+ }
+ [8]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "OCSP helper"
+ }
+ }
+ ["extensions"]=>
+ array(3) {
+ ["subjectKeyIdentifier"]=>
+ string(59) "DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D"
+ ["authorityKeyIdentifier"]=>
+ string(202) "keyid:DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D
+DirName:/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]
+serial:AE:C5:56:CC:72:37:50:A2
+"
+ ["basicConstraints"]=>
+ string(7) "CA:TRUE"
+ }
+}
Property changes on: php/php-src/branches/PHP_5_3/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native
Modified: php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic.phpt 2012-02-06 23:52:42 UTC (rev 323104)
+++ php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic.phpt 2012-02-07 01:15:13 UTC (rev 323105)
@@ -1,7 +1,9 @@
--TEST--
openssl_x509_parse() basic test
--SKIPIF--
-<?php if (!extension_loaded("openssl")) print "skip"; ?>
+<?php if (!extension_loaded("openssl")) print "skip";
+if (OPENSSL_VERSION_NUMBER < 0x10000000) die("skip Output requires OpenSSL 1.0");
+?>
--FILE--
<?php
$cert = "file://" . dirname(__FILE__) . "/cert.crt";
Added: php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
===================================================================
--- php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt (rev 0)
+++ php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt 2012-02-07 01:15:13 UTC (rev 323105)
@@ -0,0 +1,276 @@
+--TEST--
+openssl_x509_parse() basic test for OpenSSL 0.9
+--SKIPIF--
+<?php if (!extension_loaded("openssl")) print "skip";
+if (OPENSSL_VERSION_NUMBER > 0x10000000) die("skip Output requires OpenSSL 0.9");
+?>
+--FILE--
+<?php
+$cert = "file://" . dirname(__FILE__) . "/cert.crt";
+
+var_dump(openssl_x509_parse($cert));
+var_dump(openssl_x509_parse($cert, false));
+?>
+--EXPECTF--
+array(12) {
+ ["name"]=>
+ string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]"
+ ["subject"]=>
+ array(5) {
+ ["C"]=>
+ string(2) "BR"
+ ["ST"]=>
+ string(17) "Rio Grande do Sul"
+ ["L"]=>
+ string(12) "Porto Alegre"
+ ["CN"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["hash"]=>
+ string(8) "%s"
+ ["issuer"]=>
+ array(5) {
+ ["C"]=>
+ string(2) "BR"
+ ["ST"]=>
+ string(17) "Rio Grande do Sul"
+ ["L"]=>
+ string(12) "Porto Alegre"
+ ["CN"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["version"]=>
+ int(2)
+ ["serialNumber"]=>
+ string(20) "12593567369101004962"
+ ["validFrom"]=>
+ string(13) "080630102843Z"
+ ["validTo"]=>
+ string(13) "080730102843Z"
+ ["validFrom_time_t"]=>
+ int(1214821723)
+ ["validTo_time_t"]=>
+ int(1217413723)
+ ["purposes"]=>
+ array(8) {
+ [1]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "sslclient"
+ }
+ [2]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "sslserver"
+ }
+ [3]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "nssslserver"
+ }
+ [4]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "smimesign"
+ }
+ [5]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(12) "smimeencrypt"
+ }
+ [6]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(7) "crlsign"
+ }
+ [7]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(3) "any"
+ }
+ [8]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "ocsphelper"
+ }
+ }
+ ["extensions"]=>
+ array(3) {
+ ["subjectKeyIdentifier"]=>
+ string(59) "DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D"
+ ["authorityKeyIdentifier"]=>
+ string(202) "keyid:DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D
+DirName:/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]
+serial:AE:C5:56:CC:72:37:50:A2
+"
+ ["basicConstraints"]=>
+ string(7) "CA:TRUE"
+ }
+}
+array(12) {
+ ["name"]=>
+ string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]"
+ ["subject"]=>
+ array(5) {
+ ["countryName"]=>
+ string(2) "BR"
+ ["stateOrProvinceName"]=>
+ string(17) "Rio Grande do Sul"
+ ["localityName"]=>
+ string(12) "Porto Alegre"
+ ["commonName"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["hash"]=>
+ string(8) "%s"
+ ["issuer"]=>
+ array(5) {
+ ["countryName"]=>
+ string(2) "BR"
+ ["stateOrProvinceName"]=>
+ string(17) "Rio Grande do Sul"
+ ["localityName"]=>
+ string(12) "Porto Alegre"
+ ["commonName"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["version"]=>
+ int(2)
+ ["serialNumber"]=>
+ string(20) "12593567369101004962"
+ ["validFrom"]=>
+ string(13) "080630102843Z"
+ ["validTo"]=>
+ string(13) "080730102843Z"
+ ["validFrom_time_t"]=>
+ int(1214821723)
+ ["validTo_time_t"]=>
+ int(1217413723)
+ ["purposes"]=>
+ array(8) {
+ [1]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "SSL client"
+ }
+ [2]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "SSL server"
+ }
+ [3]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(19) "Netscape SSL server"
+ }
+ [4]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(14) "S/MIME signing"
+ }
+ [5]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(17) "S/MIME encryption"
+ }
+ [6]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "CRL signing"
+ }
+ [7]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "Any Purpose"
+ }
+ [8]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "OCSP helper"
+ }
+ }
+ ["extensions"]=>
+ array(3) {
+ ["subjectKeyIdentifier"]=>
+ string(59) "DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D"
+ ["authorityKeyIdentifier"]=>
+ string(202) "keyid:DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D
+DirName:/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]
+serial:AE:C5:56:CC:72:37:50:A2
+"
+ ["basicConstraints"]=>
+ string(7) "CA:TRUE"
+ }
+}
Property changes on: php/php-src/branches/PHP_5_4/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native
Modified: php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic.phpt
===================================================================
--- php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic.phpt 2012-02-06 23:52:42 UTC (rev 323104)
+++ php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic.phpt 2012-02-07 01:15:13 UTC (rev 323105)
@@ -1,7 +1,9 @@
--TEST--
openssl_x509_parse() basic test
--SKIPIF--
-<?php if (!extension_loaded("openssl")) print "skip"; ?>
+<?php if (!extension_loaded("openssl")) print "skip";
+if (OPENSSL_VERSION_NUMBER < 0x10000000) die("skip Output requires OpenSSL 1.0");
+?>
--FILE--
<?php
$cert = "file://" . dirname(__FILE__) . "/cert.crt";
Added: php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
===================================================================
--- php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt (rev 0)
+++ php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt 2012-02-07 01:15:13 UTC (rev 323105)
@@ -0,0 +1,276 @@
+--TEST--
+openssl_x509_parse() basic test for OpenSSL 0.9
+--SKIPIF--
+<?php if (!extension_loaded("openssl")) print "skip";
+if (OPENSSL_VERSION_NUMBER > 0x10000000) die("skip Output requires OpenSSL 0.9");
+?>
+--FILE--
+<?php
+$cert = "file://" . dirname(__FILE__) . "/cert.crt";
+
+var_dump(openssl_x509_parse($cert));
+var_dump(openssl_x509_parse($cert, false));
+?>
+--EXPECTF--
+array(12) {
+ ["name"]=>
+ string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]"
+ ["subject"]=>
+ array(5) {
+ ["C"]=>
+ string(2) "BR"
+ ["ST"]=>
+ string(17) "Rio Grande do Sul"
+ ["L"]=>
+ string(12) "Porto Alegre"
+ ["CN"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["hash"]=>
+ string(8) "%s"
+ ["issuer"]=>
+ array(5) {
+ ["C"]=>
+ string(2) "BR"
+ ["ST"]=>
+ string(17) "Rio Grande do Sul"
+ ["L"]=>
+ string(12) "Porto Alegre"
+ ["CN"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["version"]=>
+ int(2)
+ ["serialNumber"]=>
+ string(20) "12593567369101004962"
+ ["validFrom"]=>
+ string(13) "080630102843Z"
+ ["validTo"]=>
+ string(13) "080730102843Z"
+ ["validFrom_time_t"]=>
+ int(1214821723)
+ ["validTo_time_t"]=>
+ int(1217413723)
+ ["purposes"]=>
+ array(8) {
+ [1]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "sslclient"
+ }
+ [2]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "sslserver"
+ }
+ [3]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "nssslserver"
+ }
+ [4]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(9) "smimesign"
+ }
+ [5]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(12) "smimeencrypt"
+ }
+ [6]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(7) "crlsign"
+ }
+ [7]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(3) "any"
+ }
+ [8]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "ocsphelper"
+ }
+ }
+ ["extensions"]=>
+ array(3) {
+ ["subjectKeyIdentifier"]=>
+ string(59) "DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D"
+ ["authorityKeyIdentifier"]=>
+ string(202) "keyid:DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D
+DirName:/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]
+serial:AE:C5:56:CC:72:37:50:A2
+"
+ ["basicConstraints"]=>
+ string(7) "CA:TRUE"
+ }
+}
+array(12) {
+ ["name"]=>
+ string(96) "/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]"
+ ["subject"]=>
+ array(5) {
+ ["countryName"]=>
+ string(2) "BR"
+ ["stateOrProvinceName"]=>
+ string(17) "Rio Grande do Sul"
+ ["localityName"]=>
+ string(12) "Porto Alegre"
+ ["commonName"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["hash"]=>
+ string(8) "%s"
+ ["issuer"]=>
+ array(5) {
+ ["countryName"]=>
+ string(2) "BR"
+ ["stateOrProvinceName"]=>
+ string(17) "Rio Grande do Sul"
+ ["localityName"]=>
+ string(12) "Porto Alegre"
+ ["commonName"]=>
+ string(21) "Henrique do N. Angelo"
+ ["emailAddress"]=>
+ string(16) "[email protected]"
+ }
+ ["version"]=>
+ int(2)
+ ["serialNumber"]=>
+ string(20) "12593567369101004962"
+ ["validFrom"]=>
+ string(13) "080630102843Z"
+ ["validTo"]=>
+ string(13) "080730102843Z"
+ ["validFrom_time_t"]=>
+ int(1214821723)
+ ["validTo_time_t"]=>
+ int(1217413723)
+ ["purposes"]=>
+ array(8) {
+ [1]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "SSL client"
+ }
+ [2]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(10) "SSL server"
+ }
+ [3]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(19) "Netscape SSL server"
+ }
+ [4]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(14) "S/MIME signing"
+ }
+ [5]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(17) "S/MIME encryption"
+ }
+ [6]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "CRL signing"
+ }
+ [7]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "Any Purpose"
+ }
+ [8]=>
+ array(3) {
+ [0]=>
+ bool(true)
+ [1]=>
+ bool(true)
+ [2]=>
+ string(11) "OCSP helper"
+ }
+ }
+ ["extensions"]=>
+ array(3) {
+ ["subjectKeyIdentifier"]=>
+ string(59) "DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D"
+ ["authorityKeyIdentifier"]=>
+ string(202) "keyid:DB:7E:40:72:BD:5C:35:85:EC:29:29:81:12:E8:62:68:6A:B7:3F:7D
+DirName:/C=BR/ST=Rio Grande do Sul/L=Porto Alegre/CN=Henrique do N. Angelo/[email protected]
+serial:AE:C5:56:CC:72:37:50:A2
+"
+ ["basicConstraints"]=>
+ string(7) "CA:TRUE"
+ }
+}
Property changes on: php/php-src/trunk/ext/openssl/tests/openssl_x509_parse_basic_v9.phpt
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision
Added: svn:eol-style
+ native
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php