KeychainPasswordRetriever unlocks login.keychain-db with the macOS login password (no root). Records are cached once and reused across browsers.
| 78 | // KeychainPasswordRetriever unlocks login.keychain-db with the macOS login password (no root). |
| 79 | // Records are cached once and reused across browsers. |
| 80 | type KeychainPasswordRetriever struct { |
| 81 | Password string |
| 82 | |
| 83 | once sync.Once |
| 84 | records []keychainbreaker.GenericPassword |
| 85 | err error |
| 86 | } |
| 87 | |
| 88 | func (r *KeychainPasswordRetriever) RetrieveKey(hints Hints) ([]byte, error) { |
| 89 | if r.Password == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected