summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Brown2016-07-28 17:18:23 +0200
committerMichael Brown2016-07-29 02:12:58 +0200
commiteb7188d04b30dcbc47ac1af621b738cc0923ae38 (patch)
treefda7f01787ea5ef826befac6be1cf7af55659053 /src/config
parent[image] Add image_asn1() to extract ASN.1 objects from image (diff)
downloadipxe-eb7188d04b30dcbc47ac1af621b738cc0923ae38.tar.gz
ipxe-eb7188d04b30dcbc47ac1af621b738cc0923ae38.tar.xz
ipxe-eb7188d04b30dcbc47ac1af621b738cc0923ae38.zip
[crypto] Add DER image format
Add DER-encoded ASN.1 as an image format. There is no fixed signature for DER files. We treat an image as DER if it comprises a single valid SEQUENCE object covering the entire length of the image. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.c3
-rw-r--r--src/config/general.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/config/config.c b/src/config/config.c
index e24cfe0d..acdbebaa 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -188,6 +188,9 @@ REQUIRE_OBJECT ( pnm );
#ifdef IMAGE_PNG
REQUIRE_OBJECT ( png );
#endif
+#ifdef IMAGE_DER
+REQUIRE_OBJECT ( der );
+#endif
/*
* Drag in all requested commands
diff --git a/src/config/general.h b/src/config/general.h
index a71ba726..6ff4b74a 100644
--- a/src/config/general.h
+++ b/src/config/general.h
@@ -112,6 +112,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
//#define IMAGE_SDI /* SDI image support */
//#define IMAGE_PNM /* PNM image support */
//#define IMAGE_PNG /* PNG image support */
+//#define IMAGE_DER /* DER image support */
/*
* Command-line commands to include