aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-05-08 12:10:01 +0100
committerMichael Brown <mcb30@ipxe.org>2012-05-08 12:49:01 +0100
commit29dcb0631b1c914fc74114dd3c6add39b508953f (patch)
tree67c95f2e62bd1a57effa32bb360169be92dc0265 /src/include/ipxe
parent1a5f025ad85c484697718eeba13680dc4ffebd24 (diff)
downloadipxe-29dcb0631b1c914fc74114dd3c6add39b508953f.zip
ipxe-29dcb0631b1c914fc74114dd3c6add39b508953f.tar.gz
ipxe-29dcb0631b1c914fc74114dd3c6add39b508953f.tar.bz2
[crypto] Add asynchronous certificate validator
To allow for automatic download of cross-signing certificates and for OCSP, the validation of certificates must be an asynchronous process. Create a stub validator which uses a job-control interface to report the result of certificate validation. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/errfile.h1
-rw-r--r--src/include/ipxe/validator.h17
2 files changed, 18 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h
index 7de833d..fbdeb0a 100644
--- a/src/include/ipxe/errfile.h
+++ b/src/include/ipxe/errfile.h
@@ -258,6 +258,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_imgtrust ( ERRFILE_OTHER | 0x002b0000 )
#define ERRFILE_menu_ui ( ERRFILE_OTHER | 0x002c0000 )
#define ERRFILE_menu_cmd ( ERRFILE_OTHER | 0x002d0000 )
+#define ERRFILE_validator ( ERRFILE_OTHER | 0x002e0000 )
/** @} */
diff --git a/src/include/ipxe/validator.h b/src/include/ipxe/validator.h
new file mode 100644
index 0000000..23bdab4
--- /dev/null
+++ b/src/include/ipxe/validator.h
@@ -0,0 +1,17 @@
+#ifndef _IPXE_VALIDATOR_H
+#define _IPXE_VALIDATOR_H
+
+/** @file
+ *
+ * Certificate validator
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <ipxe/interface.h>
+#include <ipxe/x509.h>
+
+extern int create_validator ( struct interface *job, struct x509_chain *chain );
+
+#endif /* _IPXE_VALIDATOR_H */