<?php

/*
 * Disable strict error reporting, since the OpenID library
 * used is PHP4-compatible, and not PHP5 strict-standards compatible.
 */
sspmod_openid_Utils::maskErrors(E_STRICT);
if (defined('E_DEPRECATED')) {
    // PHP 5.3 also has E_DEPRECATED
    sspmod_openid_Utils::maskErrors(constant('E_DEPRECATED'));
}
// Add the OpenID library search path.
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))) . '/lib');
require_once 'Auth/OpenID/AX.php';
require_once 'Auth/OpenID/SReg.php';
require_once 'Auth/OpenID/Server.php';
require_once 'Auth/OpenID/ServerRequest.php';
/**
 * Authentication module which acts as an OpenID Consumer
 *
 * @author Andreas Åkre Solberg, <*****@*****.**>, UNINETT AS.
 * @package SimpleSAMLphp
 */
class sspmod_openid_Auth_Source_OpenIDConsumer extends SimpleSAML_Auth_Source
{
    /**
     * Static openid target to use.
     *
     * @var string|NULL
     */
    private $target;
 /**
  * Pop an error mask.
  *
  * This function restores the previous error mask.
  *
  * @author Olav Morken, UNINETT AS <*****@*****.**>
  */
 public static function popErrorMask()
 {
     $lastMask = array_pop(self::$logLevelStack);
     error_reporting($lastMask[0]);
     self::$logMask = $lastMask[1];
 }