Browse Source

[ZF-10613] Zend_InfoCard

- Fixed Fatal error.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23279 44c647ce-9c0f-0410-b52a-842ac1e357ba
ramon 15 years ago
parent
commit
1c5393c1de
1 changed files with 3 additions and 3 deletions
  1. 3 3
      library/Zend/InfoCard/Xml/Security.php

+ 3 - 3
library/Zend/InfoCard/Xml/Security.php

@@ -174,7 +174,7 @@ class Zend_InfoCard_Xml_Security
 
         $transformed_xml_binhash = pack("H*", sha1($transformed_xml));
 
-        if(!$this->_secureStringCompare($transformed_xml_binhash, $dValue)) {
+        if(!self::_secureStringCompare($transformed_xml_binhash, $dValue)) {
             require_once 'Zend/InfoCard/Xml/Security/Exception.php';
             throw new Zend_InfoCard_Xml_Security_Exception("Locally Transformed XML does not match XML Document. Cannot Verify Signature");
         }
@@ -302,7 +302,7 @@ class Zend_InfoCard_Xml_Security
         require_once 'Zend/InfoCard/Xml/Security/Exception.php';
         throw new Zend_InfoCard_Xml_Security_Exception("Invalid code path");
     }
-    
+
     /**
      * Securely compare two strings for equality while avoided C level memcmp()
      * optimisations capable of leaking timing information useful to an attacker
@@ -313,7 +313,7 @@ class Zend_InfoCard_Xml_Security
      * @param string $b
      * @return bool
      */
-    protected function _secureStringCompare($a, $b)
+    static protected function _secureStringCompare($a, $b)
     {
         if (strlen($a) !== strlen($b)) {
             return false;