iPXE
pem.h
Go to the documentation of this file.
00001 #ifndef _IPXE_PEM_H
00002 #define _IPXE_PEM_H
00003 
00004 /** @file
00005  *
00006  * PEM-encoded ASN.1 data
00007  *
00008  */
00009 
00010 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00011 
00012 #include <stdint.h>
00013 #include <ipxe/uaccess.h>
00014 #include <ipxe/asn1.h>
00015 #include <ipxe/image.h>
00016 
00017 /** Pre-encapsulation boundary marker */
00018 #define PEM_BEGIN "-----BEGIN"
00019 
00020 /** Post-encapsulation boundary marker */
00021 #define PEM_END "-----END"
00022 
00023 extern int pem_asn1 ( userptr_t data, size_t len, size_t offset,
00024                       struct asn1_cursor **cursor );
00025 
00026 extern struct image_type pem_image_type __image_type ( PROBE_NORMAL );
00027 
00028 #endif /* _IPXE_PEM_H */