Fixes errors caught in tests

This commit is contained in:
Mouse Reeve
2020-11-27 20:24:19 -08:00
parent 86cbb3edbd
commit 5638597112
3 changed files with 5 additions and 11 deletions

View File

@ -89,7 +89,7 @@ class Signature:
def verify(self, public_key, request):
''' verify rsa signature '''
if False:#http_date_age(request.headers['date']) > MAX_SIGNATURE_AGE:
if http_date_age(request.headers['date']) > MAX_SIGNATURE_AGE:
raise ValueError(
"Request too old: %s" % (request.headers['date'],))
public_key = RSA.import_key(public_key)