---
ell/cert.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ell/cert.c b/ell/cert.c
index 66433c2..7f0b694 100644
--- a/ell/cert.c
+++ b/ell/cert.c
@@ -253,6 +253,11 @@ LIB_EXPORT struct l_cert *l_certchain_get_leaf(struct l_certchain
*chain)
return chain->leaf;
}
+/*
+ * Call @cb for each certificate in the chain starting from the leaf
+ * certificate. If a call returns @true, stop and return @true to
+ * the user, otherwise return @false.
+ */
LIB_EXPORT bool l_certchain_foreach_from_leaf(struct l_certchain *chain,
l_cert_foreach_cb_t cb,
void *user_data)
@@ -269,6 +274,11 @@ LIB_EXPORT bool l_certchain_foreach_from_leaf(struct l_certchain
*chain,
return false;
}
+/*
+ * Call @cb for each certificate in the chain starting from the root
+ * certificate. If a call returns @true, stop and return @true to
+ * the user, otherwise return @false.
+ */
LIB_EXPORT bool l_certchain_foreach_from_ca(struct l_certchain *chain,
l_cert_foreach_cb_t cb,
void *user_data)
--
2.19.1