Skip to content
Snippets Groups Projects
Commit 55bf8379 authored by Jan Eberhardt's avatar Jan Eberhardt Committed by David Siegfried
Browse files

use TLS1.2-Client instead of TLS1.0-Client

parent fefcc5e6
No related branches found
No related tags found
No related merge requests found
...@@ -1558,7 +1558,7 @@ class FileManager ...@@ -1558,7 +1558,7 @@ class FileManager
break; break;
} }
} }
stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT); stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
} }
} }
} else { } else {
......
...@@ -1287,7 +1287,7 @@ class smtp_class ...@@ -1287,7 +1287,7 @@ class smtp_class
{ {
if($this->debug) if($this->debug)
$this->OutputDebug('Starting TLS cryptograpic protocol'); $this->OutputDebug('Starting TLS cryptograpic protocol');
if(!($success = @stream_socket_enable_crypto($this->connection, 1, STREAM_CRYPTO_METHOD_TLS_CLIENT))) if(!($success = @stream_socket_enable_crypto($this->connection, 1, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT)))
$this->error = 'could not start TLS connection encryption protocol'; $this->error = 'could not start TLS connection encryption protocol';
else else
{ {
...@@ -1909,4 +1909,4 @@ class smtp_class ...@@ -1909,4 +1909,4 @@ class smtp_class
*/ */
?> ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment