@@ -37,8 +37,6 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN));
3737var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT ));
3838var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN ));
3939var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_ANY ));
40- var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_OCSP_HELPER ));
41- var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_TIMESTAMP_SIGN ));
4240
4341/* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() ] ); */
4442var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SSL_CLIENT , array ($ cpca )));
@@ -62,8 +60,6 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN, array($cpca))
6260var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca )));
6361var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN , array ($ cpca )));
6462var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_ANY , array ($ cpca )));
65- var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_OCSP_HELPER , array ($ cpca )));
66- var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_TIMESTAMP_SIGN , array ($ cpca )));
6763
6864/* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() [, string $untrustedfile ]] ); function */
6965var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SSL_CLIENT , array ($ cpca ), $ utfl ));
@@ -87,8 +83,6 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN, array($cpca),
8783var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca ), $ utfl ));
8884var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN , array ($ cpca ), $ utfl ));
8985var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_ANY , array ($ cpca ), $ utfl ));
90- var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_OCSP_HELPER , array ($ cpca ), $ utfl ));
91- var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_TIMESTAMP_SIGN , array ($ cpca ), $ utfl ));
9286?>
9387--EXPECT--
9488bool(false)
@@ -119,8 +113,6 @@ bool(false)
119113bool(false)
120114bool(false)
121115bool(false)
122- bool(false)
123- bool(false)
124116int(-1)
125117int(-1)
126118int(-1)
@@ -135,8 +127,6 @@ bool(true)
135127bool(true)
136128bool(true)
137129bool(true)
138- bool(true)
139- bool(false)
140130bool(false)
141131bool(false)
142132bool(false)
@@ -158,5 +148,3 @@ bool(true)
158148bool(true)
159149bool(true)
160150bool(true)
161- bool(true)
162- bool(false)
0 commit comments