Skip to content

Commit

Permalink
Bug #18856: Authentication warnings because of wrong Auth_SASL::facto…
Browse files Browse the repository at this point in the history
…ry argument
  • Loading branch information
kenguest committed Sep 21, 2011
1 parent c39eae9 commit 5a083da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Auth/SASL.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@ function &factory($type)
break;

case 'crammd5':
$msg = 'Deprecated mechanism name. Use IANA-registered name: CRAM-MD5.';
trigger_error($msg, E_USER_DEPRECATED);
// $msg = 'Deprecated mechanism name. Use IANA-registered name: CRAM-MD5.';
// trigger_error($msg, E_USER_DEPRECATED);
case 'cram-md5':
$filename = 'Auth/SASL/CramMD5.php';
$classname = 'Auth_SASL_CramMD5';
break;

case 'digestmd5':
$msg = 'Deprecated mechanism name. Use IANA-registered name: DIGEST-MD5.';
trigger_error($msg, E_USER_DEPRECATED);
// $msg = 'Deprecated mechanism name. Use IANA-registered name: DIGEST-MD5.';
// trigger_error($msg, E_USER_DEPRECATED);
case 'digest-md5':
$msg = 'DIGEST-MD5 is a deprecated SASL mechanism as per RFC-6331. Using it could be a security risk.';
trigger_error($msg, E_USER_NOTICE);
// $msg = 'DIGEST-MD5 is a deprecated SASL mechanism as per RFC-6331. Using it could be a security risk.';
// trigger_error($msg, E_USER_NOTICE);
$filename = 'Auth/SASL/DigestMD5.php';
$classname = 'Auth_SASL_DigestMD5';
break;
Expand Down

0 comments on commit 5a083da

Please sign in to comment.