areq
Wed, 01 Sep 2010 13:35:31 -0700
Author: areq Date: Wed Sep 1 20:35:23 2010 GMT Module: packages Tag: HEAD ---- Log message: - s/mhash/hash/ by Adam Chabin
---- Files affected:
packages/php-pear-Crypt_CHAP:
php-pear-Crypt_CHAP.spec (1.35 -> 1.36) , mhash.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-pear-Crypt_CHAP/php-pear-Crypt_CHAP.spec
diff -u packages/php-pear-Crypt_CHAP/php-pear-Crypt_CHAP.spec:1.35
packages/php-pear-Crypt_CHAP/php-pear-Crypt_CHAP.spec:1.36
--- packages/php-pear-Crypt_CHAP/php-pear-Crypt_CHAP.spec:1.35 Sat Aug 21
21:07:38 2010
+++ packages/php-pear-Crypt_CHAP/php-pear-Crypt_CHAP.spec Wed Sep 1
22:35:18 2010
@@ -8,12 +8,13 @@
Summary(pl.UTF-8): %{_pearname} - Generowanie pakietów CHAP
Name: php-pear-%{_pearname}
Version: 1.0.2
-Release: 2
+Release: 3
Epoch: 0
License: PHP 2.02
Group: Development/Languages/PHP
Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
# Source0-md5: 4175a1d5486f305831adba517009c253
+Patch0: mhash.patch
URL: http://pear.php.net/package/Crypt_CHAP/
BuildRequires: php-pear-PEAR
BuildRequires: rpm-php-pearprov >= 4.4.2-11
@@ -24,6 +25,7 @@
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
%description
This package provides Classes for generating CHAP packets. Currently
these types of CHAP are supported:
@@ -58,6 +60,7 @@
%prep
%pear_package_setup
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
@@ -88,6 +91,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.36 2010/09/01 20:35:18 areq
+- s/mhash/hash/ by Adam Chabin
+
Revision 1.35 2010/08/21 19:07:38 glen
- updated deps with pearize.sh
- release 2
================================================================
Index: packages/php-pear-Crypt_CHAP/mhash.patch
diff -u /dev/null packages/php-pear-Crypt_CHAP/mhash.patch:1.1
--- /dev/null Wed Sep 1 22:35:23 2010
+++ packages/php-pear-Crypt_CHAP/mhash.patch Wed Sep 1 22:35:18 2010
@@ -0,0 +1,53 @@
+--- /usr/share/pear/Crypt/CHAP.php.org 2010-09-01 14:51:08.000000000 +0000
++++ /usr/share/pear/Crypt/CHAP.php 2010-09-01 14:53:38.000000000 +0000
+@@ -164,13 +164,13 @@
+ /**
+ * Constructor
+ *
+- * Loads the mhash extension
++ * Loads the hash extension
+ * @return void
+ */
+ function Crypt_CHAP_MSv1()
+ {
+ $this->Crypt_CHAP();
+- $this->loadExtension('mhash');
++ $this->loadExtension('hash');
+ }
+
+ /**
+@@ -182,10 +182,11 @@
+ function ntPasswordHash($password = null)
+ {
+ if (isset($password)) {
+- return mhash(MHASH_MD4, $this->str2unicode($password));
++ return pack('H*',hash('md4', $this->str2unicode($password)));
+ } else {
+- return mhash(MHASH_MD4, $this->str2unicode($this->password));
++ return pack('H*',hash('md4',
$this->str2unicode($this->password)));
+ }
++
+ }
+
+ /**
+@@ -431,7 +432,8 @@
+ */
+ function ntPasswordHashHash($nthash)
+ {
+- return mhash(MHASH_MD4, $nthash);
++ return pack('H*',hash('md4', $nthash));
++
+ }
+
+ /**
+@@ -443,8 +445,8 @@
+ */
+ function challengeHash()
+ {
+- return substr(mhash(MHASH_SHA1, $this->peerChallenge .
$this->authChallenge . $this->username), 0, 8);
+- }
++ return substr(pack('H*',hash('sha1', $this->peerChallenge .
$this->authChallenge . $this->username)), 0, 8);
++ }
+
+ /**
+ * Generates the response.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pear-Crypt_CHAP/php-pear-Crypt_CHAP.spec?r1=1.35&r2=1.36&f=u
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit