More tests and some cleanup (#3331)

This commit is contained in:
Bastian Köcher
2019-08-08 00:05:15 +02:00
committed by GitHub
parent 556a9416ae
commit 46709e8381
6 changed files with 126 additions and 70 deletions
+2 -4
View File
@@ -59,12 +59,10 @@ pub trait BareCryptoStore: Send + Sync {
/// Places it into the file system store.
///
/// `Err` if there's some sort of weird filesystem error, but should generally be `Ok`.
fn insert_unknown(&mut self, _key_type: KeyTypeId, _suri: &str, _public: &[u8]) -> Result<(), ()> {
Err(())
}
fn insert_unknown(&mut self, _key_type: KeyTypeId, _suri: &str, _public: &[u8]) -> Result<(), ()>;
/// Get the password for this store.
fn password(&self) -> Option<&str> { None }
fn password(&self) -> Option<&str>;
}
/// A pointer to the key store.