Implement a RRDP_CLEAR message that instructs the parent to cleanup
authorclaudio <claudio@openbsd.org>
Thu, 13 Jan 2022 13:18:41 +0000 (13:18 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 13 Jan 2022 13:18:41 +0000 (13:18 +0000)
commit264f4ef9cf0baf0679938eb509a3222051585213
tree899ae521ae51ca6ace1d5db8fc4b26a9106da6eb
parent58a63a6b6709eb355b61bde88606c21742e30309
Implement a RRDP_CLEAR message that instructs the parent to cleanup
the rrdp directory. This is used before a snapshot download to ensure
that the snapshot is applied to a clean repo.
Similar cleanup happens if the transfer fails. In that case remove the
temp directory contents only.
This uses a new function remove_contents() to remove everything below
a base directory (a bit like rm -r X/*).
OK tb@
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/main.c
usr.sbin/rpki-client/repo.c
usr.sbin/rpki-client/rrdp.c