github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/libkb/expire_times.go (about)

     1  package libkb
     2  
     3  // HonorPGPExpireTime determines whether expiration time on PGP sigs should be honored
     4  // during sigchain playback. For now, we don't see any reason not to, but we might
     5  // find a situation in the future that makes PGP expiration times
     6  // hard to work around. Return the expiration time (in seconds after the UTC Epoch)
     7  // to "honor" it, and "0" to ignore it. So honor it.
     8  func (g *GlobalContext) HonorPGPExpireTime(t int64) int64 { return t }
     9  
    10  // HonorSigchainExpireTime determines whether expiration time on sigchain links should
    11  // be honored or ignored. When keybase first started in 2014, there were some links
    12  // that were intended to expire in 5 years. With the benefit of 5 years of expirience,
    13  // we can now see little security rationale for this expiration, but tons of churn
    14  // if we decided to force key rotations. So return "0" to mean we no longer will
    15  // expire these keys automatically. They can of course be explicitly revoked. If you
    16  // fork this client, feel free to return "t" meaning yes, honor the expiration time
    17  // advertised in the sigchain. -- MK 2018.04.03
    18  func (g *GlobalContext) HonorSigchainExpireTime(t int64) int64 { return int64(0) }