From 25e27f195eb7b65a920c35ef249389980e5d38ba Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 25 Jan 2014 07:27:39 +0100 Subject: php-phpseclib-net-ssh2: import from rawhide --- ...hpseclib-Net-SSH2-Crypt_Blowfish_conflict.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 php-phpseclib-Net-SSH2-Crypt_Blowfish_conflict.patch (limited to 'php-phpseclib-Net-SSH2-Crypt_Blowfish_conflict.patch') diff --git a/php-phpseclib-Net-SSH2-Crypt_Blowfish_conflict.patch b/php-phpseclib-Net-SSH2-Crypt_Blowfish_conflict.patch new file mode 100644 index 0000000..e5f8f2d --- /dev/null +++ b/php-phpseclib-Net-SSH2-Crypt_Blowfish_conflict.patch @@ -0,0 +1,43 @@ +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 +Bug: https://github.com/phpseclib/phpseclib/issues/125 +Last-Update: 2013-06-29 +--- 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; -- cgit