summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/cert.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-02-04 16:50:02 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-02-04 16:50:02 +0000
commitc26e9e0f7e9e2ba6714778872448193ec1219801 (patch)
treea8dd1547967b517a6d7f948e0df7620eb054e125 /usr.sbin/rpki-client/cert.c
parent7d6863ac7356f55c00faad1c015db82d958fdae9 (diff)
Document certificate_policies() in a comment.
Diffstat (limited to 'usr.sbin/rpki-client/cert.c')
-rw-r--r--usr.sbin/rpki-client/cert.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/cert.c b/usr.sbin/rpki-client/cert.c
index b5fc2e0fdc8..186cb083da5 100644
--- a/usr.sbin/rpki-client/cert.c
+++ b/usr.sbin/rpki-client/cert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cert.c,v 1.54 2022/02/04 16:28:20 tb Exp $ */
+/* $OpenBSD: cert.c,v 1.55 2022/02/04 16:50:01 tb Exp $ */
/*
* Copyright (c) 2021 Job Snijders <job@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -971,6 +971,10 @@ out:
return rc;
}
+/*
+ * Parse the certificate policies extension and check that it follows RFC 7318.
+ * Returns zero on failure, non-zero on success.
+ */
static int
certificate_policies(struct parse *p, X509_EXTENSION *ext)
{