aboutsummaryrefslogtreecommitdiffstats
path: root/key2root-addkey.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-06-23Makefile: fix uninstall rule1.0Mattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Add pepperMattias Andrée4-3/+29
Signed-off-by: Mattias Andrée <maandree@kth.se>
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ée14-94/+360
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix exit statusMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix mistakesMattias Andrée4-19/+29
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Implement authenticationMattias Andrée3-6/+153
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-23Implement keyfile forwardingMattias Andrée1-1/+72
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ée2-8/+99
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23key2root-rmkey, key2root-lskeys: check for NUL byte on truncated lineMattias Andrée2-2/+7
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ée2-2/+71
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix error handling in key2root-rmkey on failure to commitMattias Andrée1-4/+8
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-23Add comment as to why key2root-rmkey retains the order when unlisting keysMattias Andrée1-0/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Make key directory compile-time configurable (intended for testing)Mattias Andrée3-14/+16
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ée4-7/+205
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Add argument checks to key2root-addkey and key2root-rmkeyMattias Andrée3-1/+43
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Implement key2root-lskeysMattias Andrée1-1/+142
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Fix stdout doc for key2root-lskeysMattias Andrée1-1/+7
Signed-off-by: Mattias Andrée <maandree@kth.se>
2023-06-23Some initial work on key2root: everything but authentication and keyfile forwardingMattias Andrée1-2/+203
Signed-off-by: Mattias Andrée <maandree@kth.se>