Rework the main <-> parser/filemode communication protocol a bit.
authorclaudio <claudio@openbsd.org>
Fri, 6 Jan 2023 16:06:43 +0000 (16:06 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 6 Jan 2023 16:06:43 +0000 (16:06 +0000)
commit39c0924a938f1186e824b42cf3ee8d09d0073d76
treede626f9b0ffd070ef3479b5b4a05aeb3db1bdf4b
parentf704dce31ddd2e2c7af8c15e2e92d3c3cc81a4bc
Rework the main <-> parser/filemode communication protocol a bit.

Swap repo_id and filename to simplify the code in parser.c. In filemode
both repo_id and filename are ignored.
Additionally do not errx() in case of unknown file types. Instead send back
enough info that the code can move on.

OK tb@
usr.sbin/rpki-client/filemode.c
usr.sbin/rpki-client/main.c
usr.sbin/rpki-client/parser.c