Skip to content

Commit

Permalink
Allow clock drifts up to 10. (#58)
Browse files Browse the repository at this point in the history
In SCIONLab the clocks are not well synchornized. We allow up to 10 seconds difference
among clocks in different machines.
This particular patch relies on  instead of modifying the
default values.

(cherry picked from commit 692af45)
  • Loading branch information
juagargi authored and matzf committed Mar 30, 2020
1 parent f0c97b8 commit e161bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/lib/infra/modules/trust/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ type verifier struct {
// control-plane PKI certificates through infra.Verifier interface.
func NewVerifier(provider CryptoProvider) infra.Verifier {
return &verifier{
AllowSkew: 1 * time.Second,
MaxAge: 2 * time.Second,
AllowSkew: 10 * time.Second, // XXX scionlab: allow up to 10s skew
MaxAge: 10 * time.Second, // "
Store: provider,
}
}
Expand Down

0 comments on commit e161bd2

Please sign in to comment.