mirror of
https://github.com/Luzifer/mondash-checkgpg.git
synced 2024-11-09 09:00:04 +00:00
Fix: Looks like a self-signature is valid from its creation
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7654f8a95b
commit
944f67e402
1 changed files with 1 additions and 1 deletions
2
gpg.go
2
gpg.go
|
@ -70,7 +70,7 @@ func processKey(ctx context.Context, key string) (string, mondash.Status) {
|
|||
logger.Debugf("%s %#v", n, id)
|
||||
|
||||
if id.SelfSignature.KeyLifetimeSecs != nil {
|
||||
idSelfSigExpiry := e.PrimaryKey.CreationTime.Add(time.Duration(*id.SelfSignature.KeyLifetimeSecs) * time.Second)
|
||||
idSelfSigExpiry := id.SelfSignature.CreationTime.Add(time.Duration(*id.SelfSignature.KeyLifetimeSecs) * time.Second)
|
||||
logger.WithField("id", n).Debugf("Selfsig: Identity expires: %s", idSelfSigExpiry)
|
||||
|
||||
if s := checkExpiry(idSelfSigExpiry); s != mondash.StatusOK {
|
||||
|
|
Loading…
Reference in a new issue