Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Split event_auth.check into two parts #10940

Commits on Sep 29, 2021

  1. Factor check_auth_rules_for_event out of event_auth.check

    If we're going to skip most of the method, we may as well just run the bits we
    care about.
    richvdh committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    5ff0668 View commit details
    Browse the repository at this point in the history
  2. event_auth.check: delete redundant do_size_check

    `do_size_check` is now always true, so we may as well get rid of it.
    richvdh committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    9763804 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b92299f View commit details
    Browse the repository at this point in the history
  4. Inline event_auth.check

    richvdh committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    4a79f34 View commit details
    Browse the repository at this point in the history
  5. Split call to validate_event_for_room_version out of `check_from_co…

    …ntext`
    
    ... and rename to `check_auth_rules_from_context`, and make it take a
    `RoomVersion` object.
    richvdh committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    733e474 View commit details
    Browse the repository at this point in the history
  6. Skip calls to validate_event_for_room_version for make_* functions

    since we're not checking the signatures anyway, I think we can afford to skip
    the whole thing.
    richvdh committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    23112dd View commit details
    Browse the repository at this point in the history
  7. remove redundant do_sig_check param on `validate_event_for_room_ver…

    …sion`
    
    This is now always true.
    richvdh committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    13f005d View commit details
    Browse the repository at this point in the history
  8. changelog

    richvdh committed Sep 29, 2021
    Configuration menu
    Copy the full SHA
    0ee86f5 View commit details
    Browse the repository at this point in the history