From eb7188d04b30dcbc47ac1af621b738cc0923ae38 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 28 Jul 2016 16:18:23 +0100 Subject: [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 --- src/config/config.c | 3 +++ src/config/general.h | 1 + 2 files changed, 4 insertions(+) (limited to 'src/config') 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 -- cgit v1.2.3-55-g7522