diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-06-03 22:59:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-03 22:59:51 +0100 |
commit | fec2dcb1a538ab8ab447f724af1a94d5b3517197 (patch) | |
tree | d838fe733c5f5aed90019f85cf0fe7f0f6938dff /synapse/federation/federation_base.py | |
parent | Revert "Newsfile" (diff) | |
download | synapse-fec2dcb1a538ab8ab447f724af1a94d5b3517197.tar.xz |
Enforce validity period on server_keys for fed requests. (#5321)
When handling incoming federation requests, make sure that we have an up-to-date copy of the signing key. We do not yet enforce the validity period for event signatures.
Diffstat (limited to 'synapse/federation/federation_base.py')
-rw-r--r-- | synapse/federation/federation_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/federation_base.py b/synapse/federation/federation_base.py index cffa831d80..4b38f7c759 100644 --- a/synapse/federation/federation_base.py +++ b/synapse/federation/federation_base.py @@ -265,7 +265,7 @@ def _check_sigs_on_pdus(keyring, room_version, pdus): ] more_deferreds = keyring.verify_json_objects_for_server([ - (p.sender_domain, p.redacted_pdu_json) + (p.sender_domain, p.redacted_pdu_json, 0) for p in pdus_to_check_sender ]) @@ -298,7 +298,7 @@ def _check_sigs_on_pdus(keyring, room_version, pdus): ] more_deferreds = keyring.verify_json_objects_for_server([ - (get_domain_from_id(p.pdu.event_id), p.redacted_pdu_json) + (get_domain_from_id(p.pdu.event_id), p.redacted_pdu_json, 0) for p in pdus_to_check_event_id ]) |