Skip to content

Commit ae90ecc

Browse files
lacatoirecweiske
authored andcommitted
docs: fix outdated ssl:// transport description
1 parent f81bbcf commit ae90ecc

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

appendices/transports.xml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
<literal>ssl://</literal>, <literal>tls://</literal>,
2323
<literal>sslv2://</literal> &amp; <literal>sslv3://</literal>.
2424
</simpara>
25+
<note>
26+
<simpara>
27+
The <literal>sslv2://</literal> and <literal>sslv3://</literal> transports
28+
are obsolete and should not be used. They are documented for
29+
backward compatibility only.
30+
</simpara>
31+
</note>
2532

2633
<note>
2734
<simpara>
@@ -38,8 +45,6 @@
3845
<listitem><simpara><literal>tcp://www.example.com</literal></simpara></listitem>
3946
<listitem><simpara><literal>udp://www.example.com</literal></simpara></listitem>
4047
<listitem><simpara><literal>ssl://www.example.com</literal></simpara></listitem>
41-
<listitem><simpara><literal>sslv2://www.example.com</literal></simpara></listitem>
42-
<listitem><simpara><literal>sslv3://www.example.com</literal></simpara></listitem>
4348
<listitem><simpara><literal>tls://www.example.com</literal></simpara></listitem>
4449
</itemizedlist>
4550

@@ -78,11 +83,18 @@
7883
</simpara>
7984

8085
<simpara>
81-
<literal>ssl://</literal> will attempt to negotiate an SSL V2,
82-
or SSL V3 connection depending on the capabilities and preferences
83-
of the remote host. <literal>sslv2://</literal> and
84-
<literal>sslv3://</literal> will select the SSL V2 or SSL V3
85-
protocol explicitly.
86+
<literal>ssl://</literal> will attempt to negotiate a secure SSL/TLS
87+
connection depending on the capabilities and preferences of both the
88+
client and the remote host. The actual protocols that may be used are
89+
determined by the OpenSSL configuration and by any options provided
90+
through <function>stream_context_create</function>, such as
91+
<literal>ssl.crypto_method</literal>.
92+
</simpara>
93+
94+
<simpara>
95+
The SSLv2 and SSLv3 protocols are obsolete and insecure. Their use is
96+
strongly discouraged and they are no longer enabled by default in
97+
modern versions of PHP and OpenSSL.
8698
</simpara>
8799
</section>
88100

0 commit comments

Comments
 (0)