From 1a5f025ad85c484697718eeba13680dc4ffebd24 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 8 May 2012 11:12:09 +0100 Subject: [crypto] Add x509_auto_append() CMS includes an unordered certificate set, from which certificates must be extracted in order by matching up issuers with subjects. We will use the same functionality as part of the automatic download of cross-signing certificates. Generalise cms_find_subject() to x509_find_subject(), and create x509_auto_append(). Signed-off-by: Michael Brown --- src/include/ipxe/x509.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/ipxe/x509.h b/src/include/ipxe/x509.h index 78b180c99..8753bb050 100644 --- a/src/include/ipxe/x509.h +++ b/src/include/ipxe/x509.h @@ -335,6 +335,8 @@ extern int x509_append ( struct x509_chain *chain, struct x509_certificate *cert ); extern int x509_append_raw ( struct x509_chain *chain, const void *data, size_t len ); +extern int x509_auto_append ( struct x509_chain *chain, + struct x509_chain *certs ); extern int x509_validate_chain ( struct x509_chain *chain, time_t time, struct x509_root *root ); -- cgit v1.2.3-55-g7522