diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-12-05 11:13:46 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-12-05 11:13:46 +0100 |
commit | 8fb6e77a618ce1a8151fab27445e0c3cc0241134 (patch) | |
tree | 73608a9d6880fa65c8046a09b3e6a055d9608ed4 /src/passphrase.h | |
parent | accept flags (diff) | |
download | libpassphrase-8fb6e77a618ce1a8151fab27445e0c3cc0241134.tar.gz libpassphrase-8fb6e77a618ce1a8151fab27445e0c3cc0241134.tar.bz2 libpassphrase-8fb6e77a618ce1a8151fab27445e0c3cc0241134.tar.xz |
beginning of issue #2 on github
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/passphrase.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/passphrase.h b/src/passphrase.h index d24e66e..24ee71b 100644 --- a/src/passphrase.h +++ b/src/passphrase.h @@ -93,12 +93,19 @@ char* passphrase_read(void); char* passphrase_read2(int, int); /** - * Forcable write NUL characters to a passphrase + * Forcefully write NUL characters to a passphrase * * @param ptr The password to wipe * @param n The number of characters to wipe */ -void passphrase_wipe(volatile char*, size_t); +void passphrase_wipe(char*, size_t); + +/** + * Forcefully write NUL characters to a passphrase + * + * @param ptr The password to wipe + */ +void passphrase_wipe1(char*); /** * Disable echoing and do anything else to the terminal settnings `passphrase_read` requires |