Ejemplo n.º 1
0
 /**
  * Confirm that the signature of these fields matches the
  * signature contained in the data.
  *
  * @access private
  */
 function checkMessageSignature($message)
 {
     $sig = $message->getArg(Auth_OpenID_OPENID_NS, 'sig');
     if (!$sig || Auth_OpenID::isFailure($sig)) {
         return false;
     }
     $calculated_sig = $this->getMessageSignature($message);
     return Auth_OpenID_CryptUtil::constEq($calculated_sig, $sig);
 }
Ejemplo n.º 2
0
 /**
  * Confirm that the signature of these fields matches the
  * signature contained in the data.
  *
  * @access private
  */
 function checkMessageSignature($message)
 {
     //        var_dump($message);
     //        var_dump("--------------------------");
     //var_dump(Auth_OpenID_OPENID_NS);
     $sig = $message->getArg(Auth_OpenID_OPENID_NS, 'sig');
     //       var_dump($sig);
     //       var_dump("*************************");
     if (!$sig || Auth_OpenID::isFailure($sig)) {
         return false;
     }
     //file_put_contents("log.txt","sig: ". $sig . "\n", FILE_APPEND);
     $calculated_sig = $this->getMessageSignature($message);
     //      file_put_contents("log.txt", "cal_sig: " . $calculated_sig . "\n", FILE_APPEND);
     //     file_put_contents("log.txt", Auth_OpenID_CryptUtil::constEq($calculated_sig, $sig) . "\n", FILE_APPEND);
     return Auth_OpenID_CryptUtil::constEq($calculated_sig, $sig);
 }