From 5da7fbfe99cda87046dbdf6bccaf40af93dc345b Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Wed, 23 Dec 2009 16:18:22 +0000 Subject: [PATCH] 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 --- language/context/ssl.xml | 38 +++++++++++++++++++++++++++++++++ reference/openssl/constants.xml | 20 +++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/language/context/ssl.xml b/language/context/ssl.xml index 2c0e895b49..8830ba9a83 100644 --- a/language/context/ssl.xml +++ b/language/context/ssl.xml @@ -165,6 +165,31 @@ + + + SNI_enabled + boolean + + + + If set to &true; server name indication will be enabled. Enabling SNI + allows multiple certificates on the same IP address. + + + + + + SNI_server_name + string + + + + 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. + + + @@ -181,6 +206,13 @@ + + 5.3.2 + + Added SNI_enabled and + SNI_server_name. + + 5.0.0 @@ -205,6 +237,12 @@ any context options which apply to ssl:// also apply to https:// and ftps://. + + For SNI (Server Name Indication) to be available, then PHP must be compiled + with OpenSSL 0.9.8j or greater. Use the + OPENSSL_TLSEXT_SERVER_NAME to determine whether SNI is + supported. + diff --git a/reference/openssl/constants.xml b/reference/openssl/constants.xml index cd779cb703..be713abb80 100644 --- a/reference/openssl/constants.xml +++ b/reference/openssl/constants.xml @@ -427,6 +427,26 @@ These constants were added in 5.2.0. + +
+ Version constants + + + + OPENSSL_TLSEXT_SERVER_NAME + (string) + + + + Whether SNI support is available or not. + + + + + + This constant were added in 5.3.2. + +