1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
Description: Fix Crypt_Blowfish conflict
Rename Crypt/Blowfish.php into Crypt/Blowfish-phpseclib.php so it can
be co-installed with Crypt_Blowfish from PEAR (php-crypt-blowfish
package).
Author: David Prévot <taffit@tilapin.org>
Bug: https://github.com/phpseclib/phpseclib/issues/125
Last-Update: 2013-06-29
--- a/Crypt/Blowfish.php
+++ b/Crypt/Blowfish.php
@@ -15,7 +15,7 @@
* Here's a short example of how to use this library:
* <code>
* <?php
- * include('Crypt/Blowfish.php');
+ * include('Crypt/Blowfish-phpseclib.php');
*
* $blowfish = new Crypt_Blowfish();
*
--- a/Net/SSH2.php
+++ b/Net/SSH2.php
@@ -1329,14 +1329,14 @@
break;
case 'blowfish-cbc':
if (!class_exists('Crypt_Blowfish')) {
- require_once('Crypt/Blowfish.php');
+ require_once('Crypt/Blowfish-phpseclib.php');
}
$this->encrypt = new Crypt_Blowfish();
$this->encrypt_block_size = 8;
break;
case 'blowfish-ctr':
if (!class_exists('Crypt_Blowfish')) {
- require_once('Crypt/Blowfish.php');
+ require_once('Crypt/Blowfish-phpseclib.php');
}
$this->encrypt = new Crypt_Blowfish(CRYPT_BLOWFISH_MODE_CTR);
$this->encrypt_block_size = 8;
@@ -1405,14 +1405,14 @@
break;
case 'blowfish-cbc':
if (!class_exists('Crypt_Blowfish')) {
- require_once('Crypt/Blowfish.php');
+ require_once('Crypt/Blowfish-phpseclib.php');
}
$this->decrypt = new Crypt_Blowfish();
$this->decrypt_block_size = 8;
break;
case 'blowfish-ctr':
if (!class_exists('Crypt_Blowfish')) {
- require_once('Crypt/Blowfish.php');
+ require_once('Crypt/Blowfish-phpseclib.php');
}
$this->decrypt = new Crypt_Blowfish(CRYPT_BLOWFISH_MODE_CTR);
$this->decrypt_block_size = 8;
|