From 2cc531dbe4cc3bc2a3ce756a7ec7e457d98708d7 Mon Sep 17 00:00:00 2001 From: Lukas Burkhalter Date: Mon, 11 Dec 2023 15:34:55 +0100 Subject: [PATCH] docs(v2): Remove old v1 comment in keys --- openpgp/v2/keys.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openpgp/v2/keys.go b/openpgp/v2/keys.go index cfede440..77e00375 100644 --- a/openpgp/v2/keys.go +++ b/openpgp/v2/keys.go @@ -201,7 +201,6 @@ func (e *Entity) SigningKeyById(now time.Time, id uint64, config *packet.Config) } func (e *Entity) signingKeyByIdUsage(now time.Time, id uint64, flags int, config *packet.Config) (Key, error) { - // Fail to find any signing key if the... primarySelfSignature, err := e.VerifyPrimaryKey(now) if err != nil { return Key{}, err @@ -212,7 +211,7 @@ func (e *Entity) signingKeyByIdUsage(now time.Time, id uint64, flags int, config return Key{}, err } - // Iterate the keys to find the newest, unexpired one + // Iterate the keys to find the newest, unexpired one. candidateSubkey := -1 var maxTime time.Time var selectedSubkeySelfSig *packet.Signature