ソースを参照

tls: TLSv1.1 supported since openssl v1.0.1

Hugh Waite 12 年 前
コミット
8ebd2350ef
3 ファイル変更3 行追加3 行削除
  1. 1 1
      modules/tls/doc/params.xml
  2. 1 1
      modules/tls/tls_config.c
  3. 1 1
      modules/tls/tls_init.c

+ 1 - 1
modules/tls/doc/params.xml

@@ -28,7 +28,7 @@
 			<listitem>
 				<para>
 				<emphasis>TLSv1.1</emphasis> - only TLSv1.1 connections are accepted
-				(available starting with openssl/libssl v1.0.0)
+				(available starting with openssl/libssl v1.0.1)
 				</para>
 			</listitem>
 			<listitem>

+ 1 - 1
modules/tls/tls_config.c

@@ -460,7 +460,7 @@ int tls_parse_method(str* method)
     opt = cfg_lookup_token(methods, method);
     if (!opt) return -1;
 
-#if OPENSSL_VERSION_NUMBER < 0x01000000L
+#if OPENSSL_VERSION_NUMBER < 0x1000100fL
 	if(opt->val == TLS_USE_TLSv1_1) {
 		LM_ERR("tls v1.1 not supported by this libssl version: %ld\n",
 				(long)OPENSSL_VERSION_NUMBER);

+ 1 - 1
modules/tls/tls_init.c

@@ -361,7 +361,7 @@ static void init_ssl_methods(void)
 	ssl_methods[TLS_USE_SSLv23_srv - 1] = SSLv23_server_method();
 	ssl_methods[TLS_USE_SSLv23 - 1] = SSLv23_method();
 
-#if OPENSSL_VERSION_NUMBER >= 0x01000000L
+#if OPENSSL_VERSION_NUMBER >= 0x1000100fL
 	ssl_methods[TLS_USE_TLSv1_1_cli - 1] = TLSv1_1_client_method();
 	ssl_methods[TLS_USE_TLSv1_1_srv - 1] = TLSv1_1_server_method();
 	ssl_methods[TLS_USE_TLSv1_1 - 1] = TLSv1_1_method();