getPubRing loads the public keyring from the configured path, or falls back to defaultPubRing relative to the GnuPG home. It returns an openpgp.EntityList read from the keyring, or an error.
()
| 514 | // to defaultPubRing relative to the GnuPG home. It returns an openpgp.EntityList |
| 515 | // read from the keyring, or an error. |
| 516 | func (key *MasterKey) getPubRing() (openpgp.EntityList, error) { |
| 517 | path := key.pubRing |
| 518 | if path == "" { |
| 519 | path = filepath.Join(gnuPGHome(key.gnuPGHomeDir), defaultPubRing) |
| 520 | } |
| 521 | return loadRing(path) |
| 522 | } |
| 523 | |
| 524 | // getSecRing loads the sec keyring from the configured path, or falls back |
| 525 | // to defaultSecRing relative to the GnuPG home. It returns an openpgp.EntityList |