Documented SNI support in OpenSSL from 5.3.2 (closes #50336)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@292542 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kalle Sommer Nielsen 2009-12-23 16:18:22 +00:00
parent 62ceddc05c
commit 5da7fbfe99
2 changed files with 58 additions and 0 deletions

View file

@ -165,6 +165,31 @@
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="context.ssl.sni-enabled">
<term>
<parameter>SNI_enabled</parameter>
<type>boolean</type>
</term>
<listitem>
<para>
If set to &true; server name indication will be enabled. Enabling SNI
allows multiple certificates on the same IP address.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="context.ssl.sni-server-name">
<term>
<parameter>SNI_server_name</parameter>
<type>string</type>
</term>
<listitem>
<para>
If set, then this value will be used as server name for server name
indication. If this value is not set, then the server name is guessed
based on the hostname used when opening the stream.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1><!-- }}} -->
@ -181,6 +206,13 @@
</row>
</thead>
<tbody>
<row>
<entry>5.3.2</entry>
<entry>
Added <parameter>SNI_enabled</parameter> and
<parameter>SNI_server_name</parameter>.
</entry>
</row>
<row>
<entry>5.0.0</entry>
<entry>
@ -205,6 +237,12 @@
any context options which apply to <literal>ssl://</literal> also apply to
<literal>https://</literal> and <literal>ftps://</literal>.
</simpara>
<simpara>
For SNI (Server Name Indication) to be available, then PHP must be compiled
with OpenSSL 0.9.8j or greater. Use the
<constant>OPENSSL_TLSEXT_SERVER_NAME</constant> to determine whether SNI is
supported.
</simpara>
</note>
</refsect1>

View file

@ -427,6 +427,26 @@
<para>These constants were added in 5.2.0.</para>
</note>
</section>
<section xml:id="openssl.constsni">
<title>Version constants</title>
<variablelist>
<varlistentry>
<term>
<constant>OPENSSL_TLSEXT_SERVER_NAME</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
Whether SNI support is available or not.
</simpara>
</listitem>
</varlistentry>
</variablelist>
<note>
<para>This constant were added in 5.3.2.</para>
</note>
</section>
</appendix>