mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-17 04:48:58 +03:00
fix: keyrings must return keys with entities/identities
This commit is contained in:
parent
7c4a3b12c1
commit
de6f5404e4
@ -373,6 +373,13 @@ func (pk PGPKeyring) KeysById(id uint64) []openpgp.Key {
|
|||||||
result = append(result, openpgp.Key{
|
result = append(result, openpgp.Key{
|
||||||
PublicKey: key.Public(),
|
PublicKey: key.Public(),
|
||||||
PrivateKey: key.Private(),
|
PrivateKey: key.Private(),
|
||||||
|
Entity: &openpgp.Entity{
|
||||||
|
PrimaryKey: key.Public(),
|
||||||
|
PrivateKey: key.Private(),
|
||||||
|
Identities: map[string]*openpgp.Identity{
|
||||||
|
"": {},
|
||||||
|
},
|
||||||
|
},
|
||||||
SelfSignature: &packet.Signature{
|
SelfSignature: &packet.Signature{
|
||||||
IsPrimaryId: func() *bool { b := true; return &b }(),
|
IsPrimaryId: func() *bool { b := true; return &b }(),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user