fix typo for function name load_and_decrypt_key

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
This commit is contained in:
Oguz Bektas authored and Dietmar Maurer committed 2020-01-13 11:14:47 +01:00
1 parent 50af953e1b
commit 6d20a29d73
2 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ pub fn encrypt_key_with_passphrase(
})
}
pub fn load_and_decrtypt_key(path: &std::path::Path, passphrase: &dyn Fn() -> Result<Vec<u8>, Error>) -> Result<([u8;32], DateTime<Local>), Error> {
pub fn load_and_decrypt_key(path: &std::path::Path, passphrase: &dyn Fn() -> Result<Vec<u8>, Error>) -> Result<([u8;32], DateTime<Local>), Error> {
let raw = file_get_contents(&path)?;
let data = String::from_utf8(raw)?;