@@ -42,6 +42,8 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN));
4242var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT ));
4343var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN ));
4444var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_ANY ));
45+ var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_OCSP_HELPER ));
46+ var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_TIMESTAMP_SIGN ));
4547
4648/* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() ] ); */
4749var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SSL_CLIENT , array ($ cpca )));
@@ -65,6 +67,8 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN, array($cpca))
6567var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca )));
6668var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN , array ($ cpca )));
6769var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_ANY , array ($ cpca )));
70+ var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_OCSP_HELPER , array ($ cpca )));
71+ var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_TIMESTAMP_SIGN , array ($ cpca )));
6872
6973/* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() [, string $untrustedfile ]] ); function */
7074var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SSL_CLIENT , array ($ cpca ), $ utfl ));
@@ -88,6 +92,8 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN, array($cpca),
8892var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca ), $ utfl ));
8993var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN , array ($ cpca ), $ utfl ));
9094var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_ANY , array ($ cpca ), $ utfl ));
95+ var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_OCSP_HELPER , array ($ cpca ), $ utfl ));
96+ var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_TIMESTAMP_SIGN , array ($ cpca ), $ utfl ));
9197?>
9298--CLEAN--
9399<?php
@@ -122,6 +128,8 @@ bool(false)
122128bool(false)
123129bool(false)
124130bool(false)
131+ bool(false)
132+ bool(false)
125133int(-1)
126134int(-1)
127135int(-1)
@@ -136,6 +144,8 @@ bool(true)
136144bool(true)
137145bool(true)
138146bool(true)
147+ bool(true)
148+ bool(false)
139149bool(false)
140150bool(false)
141151bool(false)
@@ -157,3 +167,5 @@ bool(true)
157167bool(true)
158168bool(true)
159169bool(true)
170+ bool(true)
171+ bool(false)
0 commit comments