summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2012-03-22 14:46:38 +0100
committerMichael Brown2012-03-25 01:11:43 +0100
commitd1465f7b0b4e3df4af1abf65462fe1d89e53a80a (patch)
tree603e3d9c50ed2fc089cfb83353404e29f46c1dcc /src/include
parent[image] Simplify image management commands and internal API (diff)
downloadipxe-d1465f7b0b4e3df4af1abf65462fe1d89e53a80a.tar.gz
ipxe-d1465f7b0b4e3df4af1abf65462fe1d89e53a80a.tar.xz
ipxe-d1465f7b0b4e3df4af1abf65462fe1d89e53a80a.zip
[image] Add the "imgtrust" and "imgverify" commands
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/errfile.h1
-rw-r--r--src/include/usr/imgtrust.h17
2 files changed, 18 insertions, 0 deletions
diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h
index e0473a171..b3fbb3910 100644
--- a/src/include/ipxe/errfile.h
+++ b/src/include/ipxe/errfile.h
@@ -250,6 +250,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_linux_entropy ( ERRFILE_OTHER | 0x00280000 )
#define ERRFILE_x509_test ( ERRFILE_OTHER | 0x00290000 )
#define ERRFILE_cms ( ERRFILE_OTHER | 0x002a0000 )
+#define ERRFILE_imgtrust ( ERRFILE_OTHER | 0x002b0000 )
/** @} */
diff --git a/src/include/usr/imgtrust.h b/src/include/usr/imgtrust.h
new file mode 100644
index 000000000..f47105af0
--- /dev/null
+++ b/src/include/usr/imgtrust.h
@@ -0,0 +1,17 @@
+#ifndef _USR_IMGTRUST_H
+#define _USR_IMGTRUST_H
+
+/** @file
+ *
+ * Image trust management
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+#include <ipxe/image.h>
+
+extern int imgverify ( struct image *image, struct image *signature,
+ const char *name );
+
+#endif /* _USR_IMGTRUST_H */