summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/SimpleSAML/Auth/TimeLimitedToken.php11
-rw-r--r--lib/SimpleSAML/XHTML/Template.php1
-rw-r--r--lib/SimpleSAML/XML/Parser.php5
3 files changed, 1 insertions, 16 deletions
diff --git a/lib/SimpleSAML/Auth/TimeLimitedToken.php b/lib/SimpleSAML/Auth/TimeLimitedToken.php
index c4b126d..5a59b7a 100644
--- a/lib/SimpleSAML/Auth/TimeLimitedToken.php
+++ b/lib/SimpleSAML/Auth/TimeLimitedToken.php
@@ -39,9 +39,6 @@ class SimpleSAML_Auth_TimeLimitedToken {
* Calculate the given time slot for a given offset.
*/
private function calculate_time_slot($offset) {
-
- #echo 'lifetime is: ' . $this->lifetime;
-
$timeslot = floor( (time() - $offset) / ($this->lifetime + $this->skew) );
return $timeslot;
}
@@ -51,10 +48,6 @@ class SimpleSAML_Auth_TimeLimitedToken {
*/
private function calculate_tokenvalue($offset) {
// A secret salt that should be randomly generated for each installation.
- #echo 'Secret salt is: ' . $this->secretSalt;
-
- #echo '<p>Calculating sha1( ' . $this->calculate_time_slot($offset) . ':' . $this->secretSalt . ' )<br />';
-
return sha1( $this->calculate_time_slot($offset) . ':' . $this->secretSalt);
}
@@ -74,10 +67,6 @@ class SimpleSAML_Auth_TimeLimitedToken {
$splittedtoken = explode('-', $token);
$offset = hexdec($splittedtoken[0]);
$value = $splittedtoken[1];
-
-
- #echo 'compare [' . $this->calculate_tokenvalue($offset). '] with [' . $value . '] offset was [' . $offset. ']';
-
return ($this->calculate_tokenvalue($offset) === $value);
}
diff --git a/lib/SimpleSAML/XHTML/Template.php b/lib/SimpleSAML/XHTML/Template.php
index 4186eb9..d259aeb 100644
--- a/lib/SimpleSAML/XHTML/Template.php
+++ b/lib/SimpleSAML/XHTML/Template.php
@@ -413,7 +413,6 @@ class SimpleSAML_XHTML_Template {
$translated = $this->getTranslation($tagData);
-# if (!empty($replacements)){ echo('<pre> [' . $tag . ']'); print_r($replacements); exit; }
foreach ($replacements as $k => $v) {
/* try to translate if no replacement is given */
if ($v == NULL) $v = $this->t($k);
diff --git a/lib/SimpleSAML/XML/Parser.php b/lib/SimpleSAML/XML/Parser.php
index b309666..d73472d 100644
--- a/lib/SimpleSAML/XML/Parser.php
+++ b/lib/SimpleSAML/XML/Parser.php
@@ -10,11 +10,8 @@ class SimpleSAML_XML_Parser {
var $simplexml = null;
-
- function __construct($xml) {
- #parent::construct($xml);
+ function __construct($xml) {;
$this->simplexml = new SimpleXMLElement($xml);
-
$this->simplexml->registerXPathNamespace('saml2', 'urn:oasis:names:tc:SAML:2.0:assertion');
$this->simplexml->registerXPathNamespace('saml2meta', 'urn:oasis:names:tc:SAML:2.0:metadata');
$this->simplexml->registerXPathNamespace('ds', 'http://www.w3.org/2000/09/xmldsig#');