safe

Password protected secret keeper
git clone git://git.z3bra.org/safe.git
Log | Files | Refs | README | LICENSE

commit 45766eca7a2cd4147702b53872b9859048080d2b
parent f8c5590bb7bc47990032429488dd8f32fefeedf7
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue,  4 Jun 2019 15:02:34 +0200

Remove readsalt()

Diffstat:
safe.c | 20--------------------
1 file changed, 0 insertions(+), 20 deletions(-)

diff --git a/safe.c b/safe.c @@ -180,26 +180,6 @@ readpass(const char *prompt, uint8_t **target, size_t *len) return 0; } -int -readsalt(uint8_t *salt, size_t sz) -{ - int fd; - - fd = open(MASTER, O_RDONLY); - if (fd < 0) { - if (errno != ENOENT) - err(1, "%s", MASTER); - - randombytes_buf(salt, sz); - return 0; - } - - xread(fd, salt, sz, NULL); - close(fd); - - return 0; -} - void deriv(char *pw, struct safe *s) {