Alter valid_filehash() to take a file descriptor instead of a path.
authorclaudio <claudio@openbsd.org>
Thu, 13 Jan 2022 13:46:03 +0000 (13:46 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 13 Jan 2022 13:46:03 +0000 (13:46 +0000)
commit87c7c78d66ac35a608680cbeb03b3c349e9aacaf
treedd65ddf593c46730f607fc3bbadd059b37d051c4
parent264f4ef9cf0baf0679938eb509a3222051585213
Alter valid_filehash() to take a file descriptor instead of a path.
This is needed so that callers can allow a file to be in multiple
locations. Also move mft_check() from mft.c to parser.c.
OK tb@
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/mft.c
usr.sbin/rpki-client/parser.c
usr.sbin/rpki-client/repo.c
usr.sbin/rpki-client/validate.c