Skip to content

Commit

Permalink
docs(v2): Remove old v1 comment in keys
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Dec 11, 2023
1 parent 0a030a3 commit 2cc531d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openpgp/v2/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2cc531d

Please sign in to comment.