Skip to content

Commit c1d9858

Browse files
committed
Rename and test resource cert in openssl_x509_checkpurpose test
1 parent d23d4fd commit c1d9858

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/openssl/tests/openssl_x509_checkpurpose.phpt renamed to ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $bert = "file://" . dirname(__FILE__) . "/bug41033.pem";
1313
$sert = "file://" . dirname(__FILE__) . "/san-cert.pem";
1414
$cpca = dirname(__FILE__) . "/san-ca.pem";
1515
$utfl = dirname(__FILE__) . "/sni_server_domain1.pem";
16+
$rcrt = openssl_x509_read($cert);
1617

1718
/* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose); */
1819
var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SSL_CLIENT));
@@ -44,7 +45,7 @@ var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_NS_SSL_SERVER, array($cpc
4445
var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN, array($cpca)));
4546
var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_ENCRYPT, array($cpca)));
4647
var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_CRL_SIGN, array($cpca)));
47-
var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_ANY, array($cpca)));
48+
var_dump(openssl_x509_checkpurpose($rcrt, X509_PURPOSE_ANY, array($cpca)));
4849
var_dump(openssl_x509_checkpurpose($bert, X509_PURPOSE_SSL_CLIENT, array($cpca)));
4950
var_dump(openssl_x509_checkpurpose($bert, X509_PURPOSE_SSL_SERVER, array($cpca)));
5051
var_dump(openssl_x509_checkpurpose($bert, X509_PURPOSE_NS_SSL_SERVER, array($cpca)));

0 commit comments

Comments
 (0)