-
Notifications
You must be signed in to change notification settings - Fork 856
Description
Affected page
https://www.php.net/manual/en/context.ssl.php
Current issue
The SSL context options documentation currently does not describe the
min_proto_version and max_proto_version options.
These options were introduced in PHP 7.3, as mentioned in the migration guide:
https://www.php.net/manual/en/migration73.other-changes.php
However, they are not documented in the SSL context options page:
https://www.php.net/manual/en/context.ssl.php
Suggested improvement
min_proto_version (int)
Specifies the minimum allowed TLS protocol version for the connection.
The value should be one of the STREAM_CRYPTO_METHOD_* constants that
represent TLS versions, such as STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT or
STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT.
This option can be used to prevent negotiation of older protocol versions.
max_proto_version (int)
Specifies the maximum allowed TLS protocol version for the connection.
The value should be one of the STREAM_CRYPTO_METHOD_* constants that
represent TLS versions.
Both options were added in PHP 7.3.
Additional context (optional)
No response