mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 10:59:21 -05:00
Fix code for reporting old verify keys in synapse
This commit is contained in:
parent
30f7bfa121
commit
e6e2627636
@ -84,12 +84,11 @@ class LocalKey(Resource):
|
||||
}
|
||||
|
||||
old_verify_keys = {}
|
||||
for key in self.config.old_signing_keys:
|
||||
key_id = "%s:%s" % (key.alg, key.version)
|
||||
for key_id, key in self.config.old_signing_keys.items():
|
||||
verify_key_bytes = key.encode()
|
||||
old_verify_keys[key_id] = {
|
||||
u"key": encode_base64(verify_key_bytes),
|
||||
u"expired_ts": key.expired,
|
||||
u"expired_ts": key.expired_ts,
|
||||
}
|
||||
|
||||
tls_fingerprints = self.config.tls_fingerprints
|
||||
|
Loading…
Reference in New Issue
Block a user