@@ -23,43 +23,13 @@ var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN));
23
23
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SMIME_ENCRYPT ));
24
24
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_CRL_SIGN ));
25
25
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_ANY ));
26
-
27
- try {
28
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_CLIENT ));
29
- } catch (\TypeError $ e ) {
30
- echo $ e ->getMessage () . \PHP_EOL ;
31
- }
32
- try {
33
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_SERVER ));
34
- } catch (\TypeError $ e ) {
35
- echo $ e ->getMessage () . \PHP_EOL ;
36
- }
37
- try {
38
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_NS_SSL_SERVER ));
39
- } catch (\TypeError $ e ) {
40
- echo $ e ->getMessage () . \PHP_EOL ;
41
- }
42
- try {
43
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_SIGN ));
44
- } catch (\TypeError $ e ) {
45
- echo $ e ->getMessage () . \PHP_EOL ;
46
- }
47
- try {
48
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_ENCRYPT ));
49
- } catch (\TypeError $ e ) {
50
- echo $ e ->getMessage () . \PHP_EOL ;
51
- }
52
- try {
53
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_CRL_SIGN ));
54
- } catch (\TypeError $ e ) {
55
- echo $ e ->getMessage () . \PHP_EOL ;
56
- }
57
- try {
58
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_ANY ));
59
- } catch (\TypeError $ e ) {
60
- echo $ e ->getMessage () . \PHP_EOL ;
61
- }
62
-
26
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_CLIENT ));
27
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_SERVER ));
28
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_NS_SSL_SERVER ));
29
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_SIGN ));
30
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_ENCRYPT ));
31
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_CRL_SIGN ));
32
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_ANY ));
63
33
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SSL_CLIENT ));
64
34
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SSL_SERVER ));
65
35
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_NS_SSL_SERVER ));
@@ -76,43 +46,13 @@ var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN, array($cpca))
76
46
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca )));
77
47
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_CRL_SIGN , array ($ cpca )));
78
48
var_dump (openssl_x509_checkpurpose ($ rcrt , X509_PURPOSE_ANY , array ($ cpca )));
79
-
80
- try {
81
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_CLIENT , array ($ cpca )));
82
- } catch (\TypeError $ e ) {
83
- echo $ e ->getMessage () . \PHP_EOL ;
84
- }
85
- try {
86
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_SERVER , array ($ cpca )));
87
- } catch (\TypeError $ e ) {
88
- echo $ e ->getMessage () . \PHP_EOL ;
89
- }
90
- try {
91
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_NS_SSL_SERVER , array ($ cpca )));
92
- } catch (\TypeError $ e ) {
93
- echo $ e ->getMessage () . \PHP_EOL ;
94
- }
95
- try {
96
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_SIGN , array ($ cpca )));
97
- } catch (\TypeError $ e ) {
98
- echo $ e ->getMessage () . \PHP_EOL ;
99
- }
100
- try {
101
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca )));
102
- } catch (\TypeError $ e ) {
103
- echo $ e ->getMessage () . \PHP_EOL ;
104
- }
105
- try {
106
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_CRL_SIGN , array ($ cpca )));
107
- } catch (\TypeError $ e ) {
108
- echo $ e ->getMessage () . \PHP_EOL ;
109
- }
110
- try {
111
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_ANY , array ($ cpca )));
112
- } catch (\TypeError $ e ) {
113
- echo $ e ->getMessage () . \PHP_EOL ;
114
- }
115
-
49
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_CLIENT , array ($ cpca )));
50
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_SERVER , array ($ cpca )));
51
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_NS_SSL_SERVER , array ($ cpca )));
52
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_SIGN , array ($ cpca )));
53
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca )));
54
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_CRL_SIGN , array ($ cpca )));
55
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_ANY , array ($ cpca )));
116
56
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SSL_CLIENT , array ($ cpca )));
117
57
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SSL_SERVER , array ($ cpca )));
118
58
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_NS_SSL_SERVER , array ($ cpca )));
@@ -129,43 +69,13 @@ var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_SMIME_SIGN, array($cpca),
129
69
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca ), $ utfl ));
130
70
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_CRL_SIGN , array ($ cpca ), $ utfl ));
131
71
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_ANY , array ($ cpca ), $ utfl ));
132
-
133
- try {
134
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_CLIENT , array ($ cpca ), $ utfl ));
135
- } catch (\TypeError $ e ) {
136
- echo $ e ->getMessage () . \PHP_EOL ;
137
- }
138
- try {
139
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_SERVER , array ($ cpca ), $ utfl ));
140
- } catch (\TypeError $ e ) {
141
- echo $ e ->getMessage () . \PHP_EOL ;
142
- }
143
- try {
144
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_NS_SSL_SERVER , array ($ cpca ), $ utfl ));
145
- } catch (\TypeError $ e ) {
146
- echo $ e ->getMessage () . \PHP_EOL ;
147
- }
148
- try {
149
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_SIGN , array ($ cpca ), $ utfl ));
150
- } catch (\TypeError $ e ) {
151
- echo $ e ->getMessage () . \PHP_EOL ;
152
- }
153
- try {
154
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca ), $ utfl ));
155
- } catch (\TypeError $ e ) {
156
- echo $ e ->getMessage () . \PHP_EOL ;
157
- }
158
- try {
159
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_CRL_SIGN , array ($ cpca ), $ utfl ));
160
- } catch (\TypeError $ e ) {
161
- echo $ e ->getMessage () . \PHP_EOL ;
162
- }
163
- try {
164
- var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_ANY , array ($ cpca ), $ utfl ));
165
- } catch (\TypeError $ e ) {
166
- echo $ e ->getMessage () . \PHP_EOL ;
167
- }
168
-
72
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_CLIENT , array ($ cpca ), $ utfl ));
73
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_SERVER , array ($ cpca ), $ utfl ));
74
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_NS_SSL_SERVER , array ($ cpca ), $ utfl ));
75
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_SIGN , array ($ cpca ), $ utfl ));
76
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca ), $ utfl ));
77
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_CRL_SIGN , array ($ cpca ), $ utfl ));
78
+ var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_ANY , array ($ cpca ), $ utfl ));
169
79
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SSL_CLIENT , array ($ cpca ), $ utfl ));
170
80
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_SSL_SERVER , array ($ cpca ), $ utfl ));
171
81
var_dump (openssl_x509_checkpurpose ($ sert , X509_PURPOSE_NS_SSL_SERVER , array ($ cpca ), $ utfl ));
0 commit comments