iPXE
pem.h
Go to the documentation of this file.
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/asn1.h>
14 #include <ipxe/image.h>
15 
16 /** Pre-encapsulation boundary marker */
17 #define PEM_BEGIN "-----BEGIN"
18 
19 /** Post-encapsulation boundary marker */
20 #define PEM_END "-----END"
21 
22 extern int pem_asn1 ( const void *data, size_t len, size_t offset,
23  struct asn1_cursor **cursor );
24 
25 extern struct image_type pem_image_type __image_type ( PROBE_NORMAL );
26 
27 #endif /* _IPXE_PEM_H */
An executable image type.
Definition: image.h:94
#define PROBE_NORMAL
Normal image probe priority.
Definition: image.h:155
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int pem_asn1(const void *data, size_t len, size_t offset, struct asn1_cursor **cursor)
Extract ASN.1 object from PEM data.
Definition: pem.c:103
Executable images.
ASN.1 encoding.
ring len
Length.
Definition: dwmac.h:231
uint8_t data[48]
Additional event data.
Definition: ena.h:22
uint16_t offset
Offset to command line.
Definition: bzimage.h:8
struct image_type pem_image_type __image_type(PROBE_NORMAL)
An ASN.1 object cursor.
Definition: asn1.h:20