summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/extern.h
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2021-10-28 13:51:43 +0000
committerJob Snijders <job@cvs.openbsd.org>2021-10-28 13:51:43 +0000
commit4d285d0fc5e949f2e5ca71336228d08aab051ae1 (patch)
tree6a5b8e25a47136d416dfdccbdc89e84a605b9b6c /usr.sbin/rpki-client/extern.h
parent9bb57323f66943217557950ba36eb175e407ca85 (diff)
Limit how many FileAndHash entries a single manifest may contain
OK claudio@
Diffstat (limited to 'usr.sbin/rpki-client/extern.h')
-rw-r--r--usr.sbin/rpki-client/extern.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/extern.h b/usr.sbin/rpki-client/extern.h
index 685acdbd746..77a3aa2bce4 100644
--- a/usr.sbin/rpki-client/extern.h
+++ b/usr.sbin/rpki-client/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.84 2021/10/28 11:57:00 claudio Exp $ */
+/* $OpenBSD: extern.h,v 1.85 2021/10/28 13:51:42 job Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -622,4 +622,9 @@ int mkpath(const char *);
*/
#define MAX_FILE_SIZE 2000000
+/*
+ * Maximum number of FileAndHash entries per Manifest.
+ */
+#define MAX_MANIFEST_ENTRIES 100000
+
#endif /* ! EXTERN_H */