1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

per discussion, remove clock skew checks; also, two TODOs moved to filed issues

This commit is contained in:
Seth Schoen
2012-11-19 11:59:21 -08:00
parent 2acbe09ded
commit 85d7437178

View File

@@ -261,19 +261,9 @@ class session(object):
self.die(r, r.BadRequest, uri="%spriorrequest" % error_uri)
return
# Process the request.
# TODO: check that each element of the CA/B Forum Baseline
# Requirements is enforced here or elsewhere.
# TODO: check that the request involves a public key algorithm
# that we support.
if not all([safe("recipient", recipient), safe("csr", csr)]):
self.die(r, r.BadRequest, uri="%sillegalcharacter" % error_uri)
return
if timestamp - time.time() > 3600:
self.die(r, r.BadRequest, uri="%sfuture" % error_uri)
return
if time.time() - timestamp > 100:
self.die(r, r.BadRequest, uri="%spast" % error_uri)
return
if len(csr) > max_csr_size:
self.die(r, r.BadCSR, uri="%slongcsr" % error_uri)
return