RFC 9092 is underspecified in this regard, but other signed
objects relating to Internet number resources (ROA, BGPsec,
ASPA, RSC) all disallow inherit.
See https://mailarchive.ietf.org/arch/msg/opsawg/JXjxCA14BkW4DWyVoUMwqDvB17I/
OK tb@
-/* $OpenBSD: geofeed.c,v 1.3 2022/11/26 16:42:04 job Exp $ */
+/* $OpenBSD: geofeed.c,v 1.4 2022/11/26 17:06:43 job Exp $ */
/*
* Copyright (c) 2022 Job Snijders <job@fastly.com>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
if ((cert = cert_parse_ee_cert(fn, *x509)) == NULL)
goto out;
+ if (x509_any_inherits(*x509)) {
+ warnx("%s: inherit elements not allowed in EE cert", fn);
+ goto out;
+ }
+
if (cert->asz > 0) {
warnx("%s: superfluous AS Resources extension present", fn);
goto out;