summary refs log tree commit diff
path: root/synapse/event_auth.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-07-14 09:13:40 -0400
committerGitHub <noreply@github.com>2021-07-14 14:13:40 +0100
commiteb3beb8f12a5ee93e19eacf0f03c6bcde18999fe (patch)
tree322b6710f69369a596d85076ef3e57f3c2ac2708 /synapse/event_auth.py
parentFix messages from multiple senders in historical chunk (MSC2716) (#10276) (diff)
downloadsynapse-eb3beb8f12a5ee93e19eacf0f03c6bcde18999fe.tar.xz
Add type hints and comments to event auth code. (#10393)
Diffstat (limited to 'synapse/event_auth.py')
-rw-r--r--synapse/event_auth.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/event_auth.py b/synapse/event_auth.py
index 89bcf81515..a3df6cfcc1 100644
--- a/synapse/event_auth.py
+++ b/synapse/event_auth.py
@@ -48,6 +48,9 @@ def check(
         room_version_obj: the version of the room
         event: the event being checked.
         auth_events: the existing room state.
+        do_sig_check: True if it should be verified that the sending server
+            signed the event.
+        do_size_check: True if the size of the event fields should be verified.
 
     Raises:
         AuthError if the checks fail