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
2020-01-10 15:04:31 +01:00
committed by Dietmar Maurer
parent 50af953e1b
commit 6d20a29d73
2 changed files with 8 additions and 8 deletions

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)?;