equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Auth |
16 * @package Zend_Auth |
17 * @subpackage Adapter |
17 * @subpackage Adapter |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Digest.php 23088 2010-10-11 19:53:24Z padraic $ |
20 * @version $Id: Digest.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 /** |
24 /** |
25 * @see Zend_Auth_Adapter_Interface |
25 * @see Zend_Auth_Adapter_Interface |
29 |
29 |
30 /** |
30 /** |
31 * @category Zend |
31 * @category Zend |
32 * @package Zend_Auth |
32 * @package Zend_Auth |
33 * @subpackage Adapter |
33 * @subpackage Adapter |
34 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
34 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
35 * @license http://framework.zend.com/license/new-bsd New BSD License |
35 * @license http://framework.zend.com/license/new-bsd New BSD License |
36 */ |
36 */ |
37 class Zend_Auth_Adapter_Digest implements Zend_Auth_Adapter_Interface |
37 class Zend_Auth_Adapter_Digest implements Zend_Auth_Adapter_Interface |
38 { |
38 { |
39 /** |
39 /** |
225 |
225 |
226 $result['code'] = Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND; |
226 $result['code'] = Zend_Auth_Result::FAILURE_IDENTITY_NOT_FOUND; |
227 $result['messages'][] = "Username '$this->_username' and realm '$this->_realm' combination not found"; |
227 $result['messages'][] = "Username '$this->_username' and realm '$this->_realm' combination not found"; |
228 return new Zend_Auth_Result($result['code'], $result['identity'], $result['messages']); |
228 return new Zend_Auth_Result($result['code'], $result['identity'], $result['messages']); |
229 } |
229 } |
230 |
230 |
231 /** |
231 /** |
232 * Securely compare two strings for equality while avoided C level memcmp() |
232 * Securely compare two strings for equality while avoided C level memcmp() |
233 * optimisations capable of leaking timing information useful to an attacker |
233 * optimisations capable of leaking timing information useful to an attacker |
234 * attempting to iteratively guess the unknown string (e.g. password) being |
234 * attempting to iteratively guess the unknown string (e.g. password) being |
235 * compared against. |
235 * compared against. |