Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to Auth_SASL 1.0.5 and its new IANA names.

This latest version of the Auth_SASL package unfortunately introduces
deprecation warnings for the "old" mechanism names, so the only way we can
support this cleanly is to switch to the new names and raise the minimum
required Auth_SASL package version to 1.0.5.

Request: 18837
  • Loading branch information...
commit 9ada98591698ee2a541d187017ce1d9681fd86af 1 parent 8c94491
Jon Parise jparise authored
Showing with 5 additions and 4 deletions.
  1. +2 −2 SMTP.php
  2. +3 −2 package.xml
4 SMTP.php
View
@@ -727,7 +727,7 @@ function _authDigest_MD5($uid, $pwd, $authz = '')
}
$challenge = base64_decode($this->_arguments[0]);
- $digest = &Auth_SASL::factory('digestmd5');
+ $digest = &Auth_SASL::factory('digest-md5');
$auth_str = base64_encode($digest->getResponse($uid, $pwd, $challenge,
$this->host, "smtp",
$authz));
@@ -779,7 +779,7 @@ function _authCRAM_MD5($uid, $pwd, $authz = '')
}
$challenge = base64_decode($this->_arguments[0]);
- $cram = &Auth_SASL::factory('crammd5');
+ $cram = &Auth_SASL::factory('cram-md5');
$auth_str = base64_encode($cram->getResponse($uid, $pwd, $challenge));
if (PEAR::isError($error = $this->_put($auth_str))) {
5 package.xml
View
@@ -22,7 +22,7 @@
<date>2011-08-13</date>
<time>10:00:00</time>
<version>
- <release>1.6.1</release>
+ <release>1.6.2</release>
<api>1.2.0</api>
</version>
<stability>
@@ -30,7 +30,7 @@
<api>stable</api>
</stability>
<license uri="http://www.php.net/license/3_01.txt">PHP License</license>
- <notes>- Fixing the detection of SASL-based AUTH methods. (Bug #18594)
+ <notes>- Update to Auth_SASL 1.0.5 and its new IANA names. (Request 18837)
</notes>
<contents>
<dir baseinstalldir="Net" name="/">
@@ -67,6 +67,7 @@
<package>
<name>Auth_SASL</name>
<channel>pear.php.net</channel>
+ <min>1.0.5</min>
</package>
</optional>
</dependencies>
Please sign in to comment.
Something went wrong with that request. Please try again.