-# $OpenBSD: Makefile.inc,v 1.7 2021/02/16 08:53:53 job Exp $
+# $OpenBSD: Makefile.inc,v 1.8 2021/03/05 17:28:09 claudio Exp $
.PATH: ${.CURDIR}/../../../../usr.sbin/rpki-client
TALARGS += ta/apnic-rpki-root-iana-origin.cer tal/apnic.tal
TALARGS += ta/ripe-ncc-ta.cer tal/ripe.tal
-SRCS_test-cert= test-cert.c cert.c x509.c ip.c as.c io.c log.c tal.c
+SRCS_test-cert= test-cert.c cert.c x509.c ip.c as.c io.c log.c tal.c validate.c
run-regress-test-cert: test-cert
./test-cert -v ${.CURDIR}/../cer/*.cer
./test-cert -vt ${TALARGS:S,,${.CURDIR}/../&,}
CLEANFILES += mft_gen.c mft_gen.c.tmp
-SRCS_test-mft+= test-mft.c mft_gen.c cms.c x509.c io.c log.c
+SRCS_test-mft+= test-mft.c mft_gen.c cms.c x509.c io.c log.c validate.c dummy.c
run-regress-test-mft: test-mft
./test-mft -v ${.CURDIR}/../mft/*.mft
run-regress-test-gbr: test-gbr
./test-gbr -v ${.CURDIR}/../gbr/*.gbr
-SRCS_test-tal= test-tal.c tal.c io.c log.c
+SRCS_test-tal= test-tal.c tal.c io.c log.c validate.c dummy.c
run-regress-test-tal: test-tal
./test-tal -v ${.CURDIR}/../tal/*.tal
--- /dev/null
+/*
+ * Public domain
+ * dummy shim for some tests.
+ */
+
+#include "extern.h"
+
+struct auth *
+auth_find(struct auth_tree *auths, const char *aki)
+{
+ return NULL;
+}
+
+int
+as_check_covered(uint32_t min, uint32_t max,
+ const struct cert_as *as, size_t asz)
+{
+ return -1;
+}
+
+int
+ip_addr_check_covered(enum afi afi,
+ const unsigned char *min, const unsigned char *max,
+ const struct cert_ip *ips, size_t ipsz)
+{
+ return -1;
+}
+
+void
+ip_addr_print(const struct ip_addr *addr,
+ enum afi afi, char *buf, size_t bufsz)
+{
+}
+