<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/openssl, branch php-4.3.3</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>This commit was manufactured by cvs2svn to create tag 'php_4_3_3'.</title>
<updated>2003-08-24T19:44:48+00:00</updated>
<author>
<name>SVN Migration</name>
<email>svn@php.net</email>
</author>
<published>2003-08-24T19:44:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=8b1e9acd2eef54c5c156387f52792efdbfec7677'/>
<id>8b1e9acd2eef54c5c156387f52792efdbfec7677</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MFH: fixed certificate version, serial number not always 0.</title>
<updated>2003-07-13T10:13:24+00:00</updated>
<author>
<name>Stefan Roehrich</name>
<email>sr@php.net</email>
</author>
<published>2003-07-13T10:13:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=56b4205f38518729a025eeba60b256c77fbfec10'/>
<id>56b4205f38518729a025eeba60b256c77fbfec10</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MFH</title>
<updated>2003-06-27T16:42:51+00:00</updated>
<author>
<name>foobar</name>
<email>sniper@php.net</email>
</author>
<published>2003-06-27T16:42:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=0db5048d6a701ba45d1e39dc4cbfbfc99d670611'/>
<id>0db5048d6a701ba45d1e39dc4cbfbfc99d670611</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.</title>
<updated>2003-06-24T15:23:18+00:00</updated>
<author>
<name>SVN Migration</name>
<email>svn@php.net</email>
</author>
<published>2003-06-24T15:23:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=3dbe3deb6405ff29870f856bceb892a04e9c123f'/>
<id>3dbe3deb6405ff29870f856bceb892a04e9c123f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed compile warnings.</title>
<updated>2003-06-08T23:42:47+00:00</updated>
<author>
<name>Ilia Alshanetsky</name>
<email>iliaa@php.net</email>
</author>
<published>2003-06-08T23:42:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=c60c1258e29807a7ec9dc64e56e6171ce785f62d'/>
<id>c60c1258e29807a7ec9dc64e56e6171ce785f62d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid potential segfault when preparing an SSL stream.</title>
<updated>2003-05-05T16:30:04+00:00</updated>
<author>
<name>Wez Furlong</name>
<email>wez@php.net</email>
</author>
<published>2003-05-05T16:30:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=246300a60cd0c614fc115e59a583a34af4300408'/>
<id>246300a60cd0c614fc115e59a583a34af4300408</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Really fix dll linkage, and fix TSRMLS usage.</title>
<updated>2003-05-01T10:44:18+00:00</updated>
<author>
<name>Wez Furlong</name>
<email>wez@php.net</email>
</author>
<published>2003-05-01T10:44:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=c3d353867abbbbde58fc743276a11128b2411c23'/>
<id>c3d353867abbbbde58fc743276a11128b2411c23</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix win32 build of shared openssl extension.</title>
<updated>2003-04-29T13:48:06+00:00</updated>
<author>
<name>Wez Furlong</name>
<email>wez@php.net</email>
</author>
<published>2003-04-29T13:48:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=87eaeb5363e6872ac06b93352cb08083191a260e'/>
<id>87eaeb5363e6872ac06b93352cb08083191a260e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MFH</title>
<updated>2003-04-28T22:42:36+00:00</updated>
<author>
<name>Ilia Alshanetsky</name>
<email>iliaa@php.net</email>
</author>
<published>2003-04-28T22:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=f15b229e55f9f24ad938066051dc54e253a2c7be'/>
<id>f15b229e55f9f24ad938066051dc54e253a2c7be</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the lack of SSL certificate verification support for ssl:// sockets and</title>
<updated>2003-04-26T21:34:49+00:00</updated>
<author>
<name>Wez Furlong</name>
<email>wez@php.net</email>
</author>
<published>2003-04-26T21:34:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=71a63bc126011a6d80c26755923956aadfcadc1f'/>
<id>71a63bc126011a6d80c26755923956aadfcadc1f</id>
<content type='text'>
https:// streams.

This code is essential for people writing secure applications in order to avoid
man-in-the-middle attacks, and is thus regarded as a bug fix.

It is, however, optional; you need to explicitly turn on the verification
functionality, as it depends on you to specify your trusted certificate chain.

This sample demonstrates a secured https:// request, making use of the CA
bundle provided by curl:

&lt;?php
$ctx = stream_context_create();
// Turn on verification
stream_context_set_option($ctx, "ssl", "verify_peer", true);
// Set the CA bundle (trusted certificate chain)
stream_context_set_option($ctx, "ssl", "cafile",
	"/usr/local/share/curl/curl-ca-bundle.crt");
$fp = fopen("https://www.zend.com", "rb", false, $ctx);
?&gt;

This sample demonstrates how to roll your own https:// request, and specify a
certificate to use for authentication; the local_cert and passphrase options
will also work for fopen().

&lt;?php
$ctx = stream_context_create();
stream_context_set_option($ctx, "ssl", "verify_peer", true);
stream_context_set_option($ctx, "ssl", "cafile",
	"/usr/local/share/curl/curl-ca-bundle.crt");

// set local cert.  it MUST be a PEM encoded file containing the certificate
// AND your private key.  It can also contain the certificate chain of issuers.
stream_context_set_option($ctx, "ssl", "local_cert", "/path/to/my/cert.pem");
stream_context_set_option($ctx, "ssl", "passphrase", "secret!");

// Set the common name that we are expecting; PHP will perform limited wildcard
// matching.  If the CN does not match this, the connection attempt will fail.
// The value to specify will always be the same as the Host: header you specify.
stream_context_set_option($ctx, "ssl", "CN_match", "secure.sample.domain");

$ssl = fsockopen("ssl://secure.sample.domain", 443, $errno, $errstr, 10, $ctx);

if ($ssl) {
	fwrite($ssl, "GET / HTTP/1.0\r\nHost: secure.sample.domain\r\n\r\n");
	fpassthru($ssl);
}

?&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https:// streams.

This code is essential for people writing secure applications in order to avoid
man-in-the-middle attacks, and is thus regarded as a bug fix.

It is, however, optional; you need to explicitly turn on the verification
functionality, as it depends on you to specify your trusted certificate chain.

This sample demonstrates a secured https:// request, making use of the CA
bundle provided by curl:

&lt;?php
$ctx = stream_context_create();
// Turn on verification
stream_context_set_option($ctx, "ssl", "verify_peer", true);
// Set the CA bundle (trusted certificate chain)
stream_context_set_option($ctx, "ssl", "cafile",
	"/usr/local/share/curl/curl-ca-bundle.crt");
$fp = fopen("https://www.zend.com", "rb", false, $ctx);
?&gt;

This sample demonstrates how to roll your own https:// request, and specify a
certificate to use for authentication; the local_cert and passphrase options
will also work for fopen().

&lt;?php
$ctx = stream_context_create();
stream_context_set_option($ctx, "ssl", "verify_peer", true);
stream_context_set_option($ctx, "ssl", "cafile",
	"/usr/local/share/curl/curl-ca-bundle.crt");

// set local cert.  it MUST be a PEM encoded file containing the certificate
// AND your private key.  It can also contain the certificate chain of issuers.
stream_context_set_option($ctx, "ssl", "local_cert", "/path/to/my/cert.pem");
stream_context_set_option($ctx, "ssl", "passphrase", "secret!");

// Set the common name that we are expecting; PHP will perform limited wildcard
// matching.  If the CN does not match this, the connection attempt will fail.
// The value to specify will always be the same as the Host: header you specify.
stream_context_set_option($ctx, "ssl", "CN_match", "secure.sample.domain");

$ssl = fsockopen("ssl://secure.sample.domain", 443, $errno, $errstr, 10, $ctx);

if ($ssl) {
	fwrite($ssl, "GET / HTTP/1.0\r\nHost: secure.sample.domain\r\n\r\n");
	fpassthru($ssl);
}

?&gt;

</pre>
</div>
</content>
</entry>
</feed>
