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 /internal | |
parent | d11da6ec7cc683864e1e10b7f47764d1bb0c4f1a (diff) |
Make `StrictValidityChecking` a function (#3092)
Companion PR to https://github.com/matrix-org/gomatrixserverlib/pull/388
Diffstat (limited to 'internal')
-rw-r--r-- | internal/caching/cache_serverkeys.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/caching/cache_serverkeys.go b/internal/caching/cache_serverkeys.go index 37e331ab..7400b868 100644 --- a/internal/caching/cache_serverkeys.go +++ b/internal/caching/cache_serverkeys.go @@ -28,7 +28,7 @@ func (c Caches) GetServerKey( ) (gomatrixserverlib.PublicKeyLookupResult, bool) { key := fmt.Sprintf("%s/%s", request.ServerName, request.KeyID) val, found := c.ServerKeys.Get(key) - if found && !val.WasValidAt(timestamp, true) { + if found && !val.WasValidAt(timestamp, gomatrixserverlib.StrictValiditySignatureCheck) { // The key wasn't valid at the requested timestamp so don't // return it. The caller will have to work out what to do. c.ServerKeys.Unset(key) |