From 01c841a0a05726af563ecf7c6982159fee7a40ce Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Sun, 25 May 2008 07:28:57 +0000 Subject: [PATCH] - replaced "\t" with " " git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@17 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Math/BigInteger.php | 10 +++++----- phpseclib/Net/SSH1.php | 4 ++-- phpseclib/Net/SSH2.php | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 693f7f4d..a54de1d0 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -69,7 +69,7 @@ * @author Jim Wigginton * @copyright MMVI Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: BigInteger.php,v 1.3 2008-03-12 22:03:08 terrafrost Exp $ + * @version $Id: BigInteger.php,v 1.4 2008-05-25 07:28:57 terrafrost Exp $ * @link http://pear.php.net/package/Math_BigInteger */ @@ -1477,7 +1477,7 @@ class Math_BigInteger { // if $x is less than 0, the first character of $x is a '-', so we'll remove it. we can do this because // $x mod $n == $x mod -$n. - $n = (bccomp($n->value, '0') < 0) ? substr($n->value, 1) : $n->value; + $n = (bccomp($n->value, '0') < 0) ? substr($n->value, 1) : $n->value; if (bccomp($this->value,'0') < 0) { $negated_this = new Math_BigInteger(); @@ -1736,7 +1736,7 @@ class Math_BigInteger { return new Math_BigInteger($this->toBytes() | $x->toBytes(), 256); } - $result = $this->_copy(); + $result = $this->_copy(); $x_length = count($x->value); for ($i = 0; $i < $x_length; $i++) { @@ -1766,7 +1766,7 @@ class Math_BigInteger { return new Math_BigInteger($this->toBytes() ^ $x->toBytes(), 256); } - $result = $this->_copy(); + $result = $this->_copy(); $x_length = count($x->value); for ($i = 0; $i < $x_length; $i++) { @@ -1916,7 +1916,7 @@ class Math_BigInteger { */ function random($min = false, $max = false, $generator = 'mt_rand') { - if ($min === false) { + if ($min === false) { $min = new Math_BigInteger(0); } diff --git a/phpseclib/Net/SSH1.php b/phpseclib/Net/SSH1.php index 1708ccb4..86634842 100644 --- a/phpseclib/Net/SSH1.php +++ b/phpseclib/Net/SSH1.php @@ -65,7 +65,7 @@ * @author Jim Wigginton * @copyright MMVII Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: SSH1.php,v 1.8 2008-05-15 17:46:51 terrafrost Exp $ + * @version $Id: SSH1.php,v 1.9 2008-05-25 07:28:57 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -873,7 +873,7 @@ class Net_SSH1 { $padding.= chr(crypt_random(0, 255)); } - $data = $padding . $data; + $data = $padding . $data; $data.= pack('N', $this->_crc($data)); if ($this->crypto !== false) { diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index ce0f8832..b55176b8 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -41,7 +41,7 @@ * @author Jim Wigginton * @copyright MMVII Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: SSH2.php,v 1.6 2008-05-21 04:28:09 terrafrost Exp $ + * @version $Id: SSH2.php,v 1.7 2008-05-25 07:28:57 terrafrost Exp $ * @link http://phpseclib.sourceforge.net */ @@ -432,7 +432,7 @@ class Net_SSH2 { return; } - if (ord($response[0]) != NET_SSH2_MSG_KEXINIT) { + if (ord($response[0]) != NET_SSH2_MSG_KEXINIT) { user_error('Expected SSH_MSG_KEXINIT', E_USER_NOTICE); return false; } @@ -690,7 +690,7 @@ class Net_SSH2 { list(, $type) = unpack('C', $this->_string_shift($response, 1)); - if ($type != NET_SSH2_MSG_KEXDH_REPLY) { + if ($type != NET_SSH2_MSG_KEXDH_REPLY) { user_error('Expected SSH_MSG_KEXDH_REPLY', E_USER_NOTICE); return false; } @@ -793,7 +793,7 @@ class Net_SSH2 { return $this->_disconnect(NET_SSH2_DISCONNECT_HOST_KEY_NOT_VERIFIABLE); } - break; + break; case 'ssh-rsa': $temp = unpack('Nlength', $this->_string_shift($server_public_host_key, 4)); $e = new Math_BigInteger($this->_string_shift($server_public_host_key, $temp['length']), -256); @@ -847,7 +847,7 @@ class Net_SSH2 { list(, $type) = unpack('C', $this->_string_shift($response, 1)); - if ($type != NET_SSH2_MSG_NEWKEYS) { + if ($type != NET_SSH2_MSG_NEWKEYS) { user_error('Expected SSH_MSG_NEWKEYS', E_USER_NOTICE); return false; } @@ -1031,7 +1031,7 @@ class Net_SSH2 { list(, $type) = unpack('C', $this->_string_shift($response, 1)); - if ($type != NET_SSH2_MSG_SERVICE_ACCEPT) { + if ($type != NET_SSH2_MSG_SERVICE_ACCEPT) { user_error('Expected SSH_MSG_SERVICE_ACCEPT', E_USER_NOTICE); return false; }