Skip to content
This repository
Browse code

adding a related message to the enableCrypto InvalidArgumentException

  • Loading branch information...
commit d7f93f5bcf0b8aeb0ad286fd2302ec2d123b0272 1 parent 17db6f9
Jorge M. González Martín authored July 24, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/Cake/Network/CakeSocket.php
4  lib/Cake/Network/CakeSocket.php
@@ -89,7 +89,7 @@ class CakeSocket {
89 89
 	protected $_encryptMethods = array(
90 90
 		'sslv2_client' => STREAM_CRYPTO_METHOD_SSLv2_CLIENT,
91 91
 		'sslv3_client' => STREAM_CRYPTO_METHOD_SSLv3_CLIENT,
92  
-		'sslv23_client' =>STREAM_CRYPTO_METHOD_SSLv23_CLIENT,
  92
+		'sslv23_client' => STREAM_CRYPTO_METHOD_SSLv23_CLIENT,
93 93
 		'tls_client' => STREAM_CRYPTO_METHOD_TLS_CLIENT,
94 94
 		'sslv2_server' => STREAM_CRYPTO_METHOD_SSLv2_SERVER,
95 95
 		'sslv3_server' => STREAM_CRYPTO_METHOD_SSLv3_SERVER,
@@ -310,7 +310,7 @@ public function reset($state = null) {
310 310
  */
311 311
 	public function enableCrypto($type, $clientOrServer = 'client', $enable = true) {
312 312
 		if (!array_key_exists($type . '_' . $clientOrServer, $this->_encryptMethods)) {
313  
-			throw new InvalidArgumentException();
  313
+			throw new InvalidArgumentException(__('Invalid encryption scheme chosen'));
314 314
 		}
315 315
 		$enableCryptoResult = false;
316 316
 		try {

0 notes on commit d7f93f5

Please sign in to comment.
Something went wrong with that request. Please try again.