forked from mirrors/bookwyrm
Removes test state of signatures
This commit is contained in:
parent
de6147ecfa
commit
1ae3830ae4
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class Signature:
|
||||||
|
|
||||||
def verify(self, public_key, request):
|
def verify(self, public_key, request):
|
||||||
''' verify rsa signature '''
|
''' 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(
|
raise ValueError(
|
||||||
"Request too old: %s" % (request.headers['date'],))
|
"Request too old: %s" % (request.headers['date'],))
|
||||||
public_key = RSA.import_key(public_key)
|
public_key = RSA.import_key(public_key)
|
||||||
|
|
Loading…
Reference in a new issue