aboutsummaryrefslogtreecommitdiffstats
path: root/key2root-addkey.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-06-23Use libar2simplified instead of crypt as crypt has a verily limited imput size, and add -h to key2root-addkey, and add key2root-cryptMattias Andrée1-66/+50
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix mistakesMattias Andrée1-9/+7
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Implement authenticationMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix support for NUL bytes in the keyfileMattias Andrée1-0/+4
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23key2root-addkey.c: Add key hashing and updatingMattias Andrée1-2/+94
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Add key lookup to key2root-addkey and fix writeallMattias Andrée1-7/+98
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23key2root-addkey: mkdir /etc/key2root before saving changesMattias Andrée1-0/+5
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Add code from key2root-rmkey.c to key2root-addkey.cMattias Andrée1-1/+70
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix commentMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix minor mistakes i key2root-lskeys.c, implement key2root-rmkey.c, and minor work on key2root-addkey.cMattias Andrée1-1/+12
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Add argument checks to key2root-addkey and key2root-rmkeyMattias Andrée1-1/+21
Signed-off-by: Mattias Andrée <maandree@kth.se>