From 14e3b4b29a96eda6230b1c2dac6cc5e793235d5a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 29 May 2017 17:29:20 +0100 Subject: [crypto] Expose pem_asn1() for use with non-image data Signed-off-by: Michael Brown --- src/include/ipxe/pem.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/ipxe/pem.h b/src/include/ipxe/pem.h index 1276f94a..d88ec5b6 100644 --- a/src/include/ipxe/pem.h +++ b/src/include/ipxe/pem.h @@ -3,12 +3,15 @@ /** @file * - * PEM image format + * PEM-encoded ASN.1 data * */ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); +#include +#include +#include #include /** Pre-encapsulation boundary marker */ @@ -17,6 +20,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); /** Post-encapsulation boundary marker */ #define PEM_END "-----END" +extern int pem_asn1 ( userptr_t data, size_t len, size_t offset, + struct asn1_cursor **cursor ); + extern struct image_type pem_image_type __image_type ( PROBE_NORMAL ); #endif /* _IPXE_PEM_H */ -- cgit v1.2.3-55-g7522