ClosePublicKeyStore closes the public key store.
()
| 338 | |
| 339 | // ClosePublicKeyStore closes the public key store. |
| 340 | func ClosePublicKeyStore() { |
| 341 | pksLock.Lock() |
| 342 | defer pksLock.Unlock() |
| 343 | if pks != nil { |
| 344 | _ = pks.db.Close() |
| 345 | pks = nil |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | func removeFileIfIsNotSQLite(filename string) (err error) { |
| 350 | var ( |