Commit 1706930d authored by Tobias Stoeckmann's avatar Tobias Stoeckmann
Browse files

Use explicit_bzero for password data.



The C standard does not guarantee that memset won't be optimized away by
a compiler, which means that memset for password data is not safe.

Also clear password data in signal handler for SIGTERM, otherwise it
could happen that password data is left in memory that way.

Signed-off-by: default avatarTobias Stoeckmann <tobias@stoeckmann.org>
parent 64ce5e33
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment