From: tb Date: Fri, 4 Feb 2022 16:50:01 +0000 (+0000) Subject: Document certificate_policies() in a comment. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d23e87a21c072ff35a57fc11a10b853f8be78361;p=openbsd Document certificate_policies() in a comment. --- 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 * Copyright (c) 2019 Kristaps Dzonsons @@ -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) {