diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-23 19:36:52 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-23 19:38:23 +0200 |
commit | 5d432bac33fe533c6f200b0acab1d33491bf6e0e (patch) | |
tree | 93d027fe7e46910a7e7c208b408d4dc3415ad314 /key2root.c | |
parent | Use libar2simplified instead of crypt as crypt has a verily limited imput size, and add -h to key2root-addkey, and add key2root-crypt (diff) | |
download | key2root-5d432bac33fe533c6f200b0acab1d33491bf6e0e.tar.gz key2root-5d432bac33fe533c6f200b0acab1d33491bf6e0e.tar.bz2 key2root-5d432bac33fe533c6f200b0acab1d33491bf6e0e.tar.xz |
Add pepper
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | key2root.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -240,7 +240,7 @@ hashequal(const char *a, const char *b) static int checkauth(char *data, size_t whead, size_t *rheadp, size_t *rhead2p, size_t *linenop, const char *path, - const char *keyname, size_t keyname_len, const char *key, size_t key_len, int *key_foundp) + const char *keyname, size_t keyname_len, char *key, size_t key_len, int *key_foundp) { int failed = 0, match; char *hash, *sp; @@ -287,7 +287,7 @@ checkauth(char *data, size_t whead, size_t *rheadp, size_t *rhead2p, size_t *lin static int -authenticate(const char *path, const char *keyname, const char *key, size_t key_len, int *key_foundp) +authenticate(const char *path, const char *keyname, char *key, size_t key_len, int *key_foundp) { int fd; char *data = NULL; |