summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2017-05-29 18:29:20 +0200
committerMichael Brown2017-06-20 11:14:07 +0200
commit14e3b4b29a96eda6230b1c2dac6cc5e793235d5a (patch)
tree2570b999dd9911ae59bc9286346037e8ec627429 /src/include/ipxe
parent[crypto] Provide asn1_built() to construct a cursor from a builder (diff)
downloadipxe-14e3b4b29a96eda6230b1c2dac6cc5e793235d5a.tar.gz
ipxe-14e3b4b29a96eda6230b1c2dac6cc5e793235d5a.tar.xz
ipxe-14e3b4b29a96eda6230b1c2dac6cc5e793235d5a.zip
[crypto] Expose pem_asn1() for use with non-image data
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/pem.h8
1 files changed, 7 insertions, 1 deletions
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 <stdint.h>
+#include <ipxe/uaccess.h>
+#include <ipxe/asn1.h>
#include <ipxe/image.h>
/** 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 */