diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-12-15 12:05:00 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-12-15 12:05:00 +0000 |
commit | 25da70449625ee214a213806183b5bfed62b7ba5 (patch) | |
tree | a826cd93f6184730a9eecff066e6b4d5c2eb0bd8 /regress | |
parent | de9c4a8fd628e736c7160f2a582bf85b58ddee58 (diff) |
Add shim functions for repo code introduced by the pre repo stats.
From tb@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.sbin/rpki-client/Makefile.inc | 6 | ||||
-rw-r--r-- | regress/usr.sbin/rpki-client/repo-dummy.c | 24 |
2 files changed, 27 insertions, 3 deletions
diff --git a/regress/usr.sbin/rpki-client/Makefile.inc b/regress/usr.sbin/rpki-client/Makefile.inc index efa343371b2..c8e44e89a2f 100644 --- a/regress/usr.sbin/rpki-client/Makefile.inc +++ b/regress/usr.sbin/rpki-client/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.27 2022/11/26 12:09:34 job Exp $ +# $OpenBSD: Makefile.inc,v 1.28 2022/12/15 12:04:59 claudio Exp $ .PATH: ${.CURDIR}/../../../../usr.sbin/rpki-client @@ -43,7 +43,7 @@ run-regress-test-mft: test-mft ./test-mft -v ${.CURDIR}/../mft/*.mft SRCS_test-roa+= test-roa.c roa.c cms.c x509.c ip.c as.c io.c log.c \ - encoding.c print.c validate.c cert.c mft.c + encoding.c print.c validate.c cert.c mft.c repo-dummy.c run-regress-test-roa: test-roa ./test-roa -v ${.CURDIR}/../roa/*.roa @@ -68,7 +68,7 @@ run-regress-test-tal: test-tal ./test-tal -v ${.CURDIR}/../tal/*.tal SRCS_test-aspa+= test-aspa.c aspa.c cms.c x509.c ip.c as.c io.c log.c \ - encoding.c print.c validate.c cert.c mft.c + encoding.c print.c validate.c cert.c mft.c repo-dummy.c run-regress-test-aspa: test-aspa ./test-aspa -v ${.CURDIR}/../aspa/*.asa diff --git a/regress/usr.sbin/rpki-client/repo-dummy.c b/regress/usr.sbin/rpki-client/repo-dummy.c new file mode 100644 index 00000000000..2147f6cd0ad --- /dev/null +++ b/regress/usr.sbin/rpki-client/repo-dummy.c @@ -0,0 +1,24 @@ +/* + * Public domain + * dummy shim for some tests. + */ + +#include "extern.h" + +void +repo_stat_inc(struct repo *repo, enum rtype type, enum stype subtype) +{ + return; +} + +struct repo * +repo_byid(unsigned int id) +{ + return NULL; +} + +unsigned int +repo_id(const struct repo *repo) +{ + return 0; +} |