Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding a related message to the enableCrypto InvalidArgumentException

  • Loading branch information...
commit d7f93f5bcf0b8aeb0ad286fd2302ec2d123b0272 1 parent 17db6f9
@steinkel steinkel authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Network/CakeSocket.php
View
4 lib/Cake/Network/CakeSocket.php
@@ -89,7 +89,7 @@ class CakeSocket {
protected $_encryptMethods = array(
'sslv2_client' => STREAM_CRYPTO_METHOD_SSLv2_CLIENT,
'sslv3_client' => STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
- 'sslv23_client' =>STREAM_CRYPTO_METHOD_SSLv23_CLIENT,
+ 'sslv23_client' => STREAM_CRYPTO_METHOD_SSLv23_CLIENT,
'tls_client' => STREAM_CRYPTO_METHOD_TLS_CLIENT,
'sslv2_server' => STREAM_CRYPTO_METHOD_SSLv2_SERVER,
'sslv3_server' => STREAM_CRYPTO_METHOD_SSLv3_SERVER,
@@ -310,7 +310,7 @@ public function reset($state = null) {
*/
public function enableCrypto($type, $clientOrServer = 'client', $enable = true) {
if (!array_key_exists($type . '_' . $clientOrServer, $this->_encryptMethods)) {
- throw new InvalidArgumentException();
+ throw new InvalidArgumentException(__('Invalid encryption scheme chosen'));
}
$enableCryptoResult = false;
try {
Please sign in to comment.
Something went wrong with that request. Please try again.