@@ -13,6 +13,7 @@ $bert = "file://" . dirname(__FILE__) . "/bug41033.pem";
13
13
$ sert = "file:// " . dirname (__FILE__ ) . "/san-cert.pem " ;
14
14
$ cpca = dirname (__FILE__ ) . "/san-ca.pem " ;
15
15
$ utfl = dirname (__FILE__ ) . "/sni_server_domain1.pem " ;
16
+ $ rcrt = openssl_x509_read ($ cert );
16
17
17
18
/* int openssl_x509_checkpurpose ( mixed $x509cert , int $purpose); */
18
19
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SSL_CLIENT ));
@@ -44,7 +45,7 @@ var_dump(openssl_x509_checkpurpose($cert, X509_PURPOSE_NS_SSL_SERVER, array($cpc
44
45
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SMIME_SIGN , array ($ cpca )));
45
46
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_SMIME_ENCRYPT , array ($ cpca )));
46
47
var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_CRL_SIGN , array ($ cpca )));
47
- var_dump (openssl_x509_checkpurpose ($ cert , X509_PURPOSE_ANY , array ($ cpca )));
48
+ var_dump (openssl_x509_checkpurpose ($ rcrt , X509_PURPOSE_ANY , array ($ cpca )));
48
49
var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_CLIENT , array ($ cpca )));
49
50
var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_SSL_SERVER , array ($ cpca )));
50
51
var_dump (openssl_x509_checkpurpose ($ bert , X509_PURPOSE_NS_SSL_SERVER , array ($ cpca )));
0 commit comments