summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/extern.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2022-04-04 16:02:55 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2022-04-04 16:02:55 +0000
commit6da900da6d0a315efca784770fd54bba1804fd08 (patch)
treeb4ad36eadc507ad3483d289d4e82d21f50f1cb28 /usr.sbin/rpki-client/extern.h
parent61bca7052919244ac3d121921c1ee3d7fd07302c (diff)
Adjust cache cleanup to the deficits of RRDP. Unlike rysnc, RRDP has no
method to sync the cache. It just depends on all deltas to work but has no method to check if the result is consistent with the source. Because of this do not unlink files which were fetched via RRDP. Instead move them back to their .rrdp directory and hope the will be cleaned up. This should help to keep the cache coherent in some edge cases. OK tb@
Diffstat (limited to 'usr.sbin/rpki-client/extern.h')
-rw-r--r--usr.sbin/rpki-client/extern.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/extern.h b/usr.sbin/rpki-client/extern.h
index 4c13758baf9..ac72ace9b39 100644
--- a/usr.sbin/rpki-client/extern.h
+++ b/usr.sbin/rpki-client/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.124 2022/04/02 12:17:53 claudio Exp $ */
+/* $OpenBSD: extern.h,v 1.125 2022/04/04 16:02:54 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -528,7 +528,7 @@ struct repo *ta_lookup(int, struct tal *);
struct repo *repo_lookup(int, const char *, const char *);
struct repo *repo_byid(unsigned int);
int repo_queued(struct repo *, struct entity *);
-void repo_cleanup(struct filepath_tree *);
+void repo_cleanup(struct filepath_tree *, int);
void repo_free(void);
void rsync_finish(unsigned int, int);
@@ -628,6 +628,7 @@ void logx(const char *fmt, ...)
time_t getmonotime(void);
int mkpath(const char *);
+int mkpathat(int, const char *);
#define RPKI_PATH_OUT_DIR "/var/db/rpki-client"
#define RPKI_PATH_BASE_DIR "/var/cache/rpki-client"