URI: 
       tRemove readsalt() - safe - password protected secret keeper
  HTML git clone git://git.z3bra.org/safe.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 45766eca7a2cd4147702b53872b9859048080d2b
   DIR parent f8c5590bb7bc47990032429488dd8f32fefeedf7
  HTML Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue,  4 Jun 2019 15:02:34 +0200
       
       Remove readsalt()
       
       Diffstat:
         M safe.c                              |      20 --------------------
       
       1 file changed, 0 insertions(+), 20 deletions(-)
       ---
   DIR diff --git a/safe.c b/safe.c
       t@@ -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)
        {