@@ -37,6 +37,8 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN));
37
37
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT ));
38
38
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN ));
39
39
var_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 ));
40
42
41
43
/* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() ] ); */
42
44
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SSL_CLIENT , array ($ cpca )));
@@ -60,6 +62,8 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN, array($cpca))
60
62
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca )));
61
63
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN , array ($ cpca )));
62
64
var_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 )));
63
67
64
68
/* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose [, array $cainfo = array() [, string $untrustedfile ]] ); function */
65
69
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SSL_CLIENT , array ($ cpca ), $ utfl ));
@@ -83,6 +87,8 @@ var_dump(openssl_x509_checkpurpose($sert, X509_PURPOSE_SMIME_SIGN, array($cpca),
83
87
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca ), $ utfl ));
84
88
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_CRL_SIGN , array ($ cpca ), $ utfl ));
85
89
var_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 ));
86
92
?>
87
93
--EXPECT--
88
94
bool(false)
@@ -113,6 +119,8 @@ bool(false)
113
119
bool(false)
114
120
bool(false)
115
121
bool(false)
122
+ bool(false)
123
+ bool(false)
116
124
int(-1)
117
125
int(-1)
118
126
int(-1)
@@ -127,6 +135,8 @@ bool(true)
127
135
bool(true)
128
136
bool(true)
129
137
bool(true)
138
+ bool(true)
139
+ bool(false)
130
140
bool(false)
131
141
bool(false)
132
142
bool(false)
@@ -148,3 +158,5 @@ bool(true)
148
158
bool(true)
149
159
bool(true)
150
160
bool(true)
161
+ bool(true)
162
+ bool(false)
0 commit comments