1 #ifndef _IPXE_PEM_H 2 #define _IPXE_PEM_H 3 4 /** @file 5 * 6 * PEM-encoded ASN.1 data 7 * 8 */ 9 10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); 11 12 #include <stdint.h> 13 #include <ipxe/uaccess.h> 14 #include <ipxe/asn1.h> 15 #include <ipxe/image.h> 16 17 /** Pre-encapsulation boundary marker */ 18 #define PEM_BEGIN "-----BEGIN" 19 20 /** Post-encapsulation boundary marker */ 21 #define PEM_END "-----END" 22 23 extern int pem_asn1 ( userptr_t data, size_t len, size_t offset, 24 struct asn1_cursor **cursor ); 25 26 extern struct image_type pem_image_type __image_type ( PROBE_NORMAL ); 27 28 #endif /* _IPXE_PEM_H */ 29