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