mirror of https://github.com/perkeep/perkeep.git
pkg/sign: use local readKeyRing function instead of opengpg's, to handle armored key rings. (#1612)
This commit is contained in:
parent
d605f86c82
commit
4133763b62
|
@ -84,9 +84,9 @@ func (fe *FileEntityFetcher) FetchEntity(fingerprint string) (*openpgp.Entity, e
|
|||
return nil, fmt.Errorf("jsonsign: FetchEntity: %v", err)
|
||||
}
|
||||
defer f.Close()
|
||||
el, err := openpgp.ReadKeyRing(f)
|
||||
el, err := readKeyRing(f)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("jsonsign: openpgp.ReadKeyRing of %q: %v", fe.File, err)
|
||||
return nil, fmt.Errorf("jsonsign: readKeyRing of %q: %v", fe.File, err)
|
||||
}
|
||||
for _, e := range el {
|
||||
pubk := &e.PrivateKey.PublicKey
|
||||
|
|
Loading…
Reference in New Issue