tape: clear encryption key after backup (for security reasons)
This commit is contained in:
parent
973e985d73
commit
fad95a334a
@ -661,6 +661,14 @@ impl SgTape {
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for SgTape {
|
||||
fn drop(&mut self) {
|
||||
// For security reasons, clear the encryption key
|
||||
let _ = self.set_encryption(None);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub struct SgTapeReader<'a> {
|
||||
sg_tape: &'a mut SgTape,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user