tree-wide: whenever we deal with passwords, erase them from memory after use

A bit snake-oilish, but can't hurt.
This commit is contained in:
Lennart Poettering
2015-10-19 23:13:07 +02:00
parent 0245cf8167
commit 1602b00853
8 changed files with 162 additions and 84 deletions
+4
View File
@@ -943,3 +943,7 @@ int version(void);
bool fdname_is_valid(const char *s);
bool oom_score_adjust_is_valid(int oa);
#define memory_erase(p, l) memset((p), 'x', (l))
void string_erase(char *x);
void strv_erase(char **l);