UnexpectedUpdate in Network.request_challenges

This commit is contained in:
Jakub Warmuz 2015-03-24 18:39:05 +00:00
parent 7e5ccddf7e
commit c242091b4e
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA

View file

@ -116,7 +116,9 @@ class Network(object):
body=messages2.Authorization.from_json(response.json()),
uri=response.headers['location'],
new_cert_uri=response.links['next']['url'])
assert authzr.body.key == self.key.public()
if (authzr.body.key != self.key.public()
or authzr.body.identifier != identifier):
raise errors.UnexpectedUpdate(authzr)
return authzr
# TODO: anything below is also stub, bot not working, not tested at all