diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2023-06-06 15:16:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 15:16:55 +0200 |
commit | 725ff5567d2a3bc9992b065e72ccabefb595ec1c (patch) | |
tree | a0b84345c1206864bdd3637ccf0193fff0a38b38 /federationapi/routing/leave.go | |
parent | d11da6ec7cc683864e1e10b7f47764d1bb0c4f1a (diff) |
Make `StrictValidityChecking` a function (#3092)
Companion PR to https://github.com/matrix-org/gomatrixserverlib/pull/388
Diffstat (limited to 'federationapi/routing/leave.go')
-rw-r--r-- | federationapi/routing/leave.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/federationapi/routing/leave.go b/federationapi/routing/leave.go index a767168d..d7d5b599 100644 --- a/federationapi/routing/leave.go +++ b/federationapi/routing/leave.go @@ -291,10 +291,10 @@ func SendLeave( } } verifyRequests := []gomatrixserverlib.VerifyJSONRequest{{ - ServerName: serverName, - Message: redacted, - AtTS: event.OriginServerTS(), - StrictValidityChecking: true, + ServerName: serverName, + Message: redacted, + AtTS: event.OriginServerTS(), + ValidityCheckingFunc: gomatrixserverlib.StrictValiditySignatureCheck, }} verifyResults, err := keys.VerifyJSONs(httpReq.Context(), verifyRequests) if err != nil { |