Commit ad24197e authored by Bruno Renié's avatar Bruno Renié
Browse files

signer: make sure signer load fails even with clock drift

parent 153f4339
......@@ -31,7 +31,7 @@ def loads_with_timestamp(value, salt):
"""Returns the unsigned value along with its timestamp, the time when it
got dumped."""
signing.loads(value, salt=salt, max_age=-1)
signing.loads(value, salt=salt, max_age=-999999)
except signing.SignatureExpired as e:
age = float(str(e).split('Signature age ')[1].split(' >')[0])
timestamp = - datetime.timedelta(seconds=age)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment