Skip to content

Commit

Permalink
Version 2.0.1
Browse files Browse the repository at this point in the history
- Fix for zeroize on unix targets
  • Loading branch information
finfet committed Jul 28, 2023
1 parent 8994b5a commit 5376535
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Version 2.0.1

2023-07-27

- Fix for zeroize on unix targets

## Version 2.0.0

2023-07-20
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "passterm"
version = "2.0.0"
version = "2.0.1"
edition = "2021"
authors = [
"Kyle Schreiber <kyle@80x24.net>",
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ mod unix {
}
};

#[cfg(feature = "secure_zero")]
let password = zeroize::Zeroizing::new(password);

if prompt.is_some() {
if let Err(e) = write_tty("\n", &mut tty) {
set_echo(true, tty_fd)?;
Expand Down

0 comments on commit 5376535

Please sign in to comment.