aboutsummaryrefslogtreecommitdiff
path: root/internal/caching
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-06-06 15:16:55 +0200
committerGitHub <noreply@github.com>2023-06-06 15:16:55 +0200
commit725ff5567d2a3bc9992b065e72ccabefb595ec1c (patch)
treea0b84345c1206864bdd3637ccf0193fff0a38b38 /internal/caching
parentd11da6ec7cc683864e1e10b7f47764d1bb0c4f1a (diff)
Make `StrictValidityChecking` a function (#3092)
Companion PR to https://github.com/matrix-org/gomatrixserverlib/pull/388
Diffstat (limited to 'internal/caching')
-rw-r--r--internal/caching/cache_serverkeys.go2
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)