Fix up process_v2_response

This commit is contained in:
Erik Johnston 2015-06-24 12:53:26 +01:00
parent 2dcddf83f3
commit f4964e666a
1 changed files with 39 additions and 39 deletions

View File

@ -461,8 +461,8 @@ class Keyring(object):
old_verify_keys[key_id] = verify_key
results = {}
for server_name, keys_dict in response_json["signatures"].items():
for key_id in keys_dict:
server_name = response_json["server_name"]
for key_id in response_json["signatures"].get(server_name, {}):
if key_id not in response_json["verify_keys"]:
raise ValueError(
"Key response must include verification keys for all"