RFC 6487, section 4.8.8.1 only lists caRepository and rpkiManifest, and
RFC 8182 added rpkiNotify for RRDP. All other access methods (which would
be children of id-ad), are not allowed and do not really make sense here.
ok claudio
-/* $OpenBSD: cert.c,v 1.135 2024/06/04 14:07:10 tb Exp $ */
+/* $OpenBSD: cert.c,v 1.136 2024/06/04 14:10:53 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2021 Job Snijders <job@openbsd.org>
}
cert->notify = notify;
notify = NULL;
+ } else {
+ char buf[128];
+
+ OBJ_obj2txt(buf, sizeof(buf), oid, 0);
+ warnx("%s: RFC 6487 section 4.8.8.1: unexpected"
+ " accessMethod: %s", fn, buf);
+ goto out;
}
}