actually timestamp is an integer, not string

This commit is contained in:
Seth Schoen 2012-05-31 15:06:13 -07:00
parent 7aceaba6f0
commit ee2e183834

View file

@ -116,7 +116,7 @@ class index:
r.failure.cause = r.BadCSR
r.failure.affectedrequest = nonce
return
# if CSR.verify(pubkey(csr), sig) != hmac("chocolate-request-ca-example.com", /%s/%s/%s/%s" % (timestamp, recipient, nonce, csr))):
# if CSR.verify(pubkey(csr), sig) != hmac("chocolate-request-ca-example.com", /%d/%s/%s/%s" % (timestamp, recipient, nonce, csr))):
# self.killsession()
# r.failure.cause = BadSignature
# r.failure.affectedrequest = nonce