(svc string)
| 117 | } |
| 118 | |
| 119 | func queryMasterKey(svc string) ([]kc.QueryResult, error) { |
| 120 | q := kc.NewItem() |
| 121 | q.SetSecClass(kc.SecClassGenericPassword) |
| 122 | q.SetService(svc) |
| 123 | q.SetAccount(account) |
| 124 | q.SetMatchLimit(kc.MatchLimitOne) |
| 125 | q.SetReturnData(true) |
| 126 | return kc.QueryItem(q) |
| 127 | } |
| 128 | |
| 129 | func DeleteMasterKey() error { |
| 130 | it := kc.NewItem() |