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
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <stdint.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
23extern int pem_asn1 ( const void *data, size_t len, size_t offset,
24 struct asn1_cursor **cursor );
25
26extern struct image_type pem_image_type __image_type ( PROBE_NORMAL );
27
28#endif /* _IPXE_PEM_H */
ASN.1 encoding.
uint16_t offset
Offset to command line.
Definition bzimage.h:3
ring len
Length.
Definition dwmac.h:226
uint8_t data[48]
Additional event data.
Definition ena.h:11
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
Executable images.
#define PROBE_NORMAL
Normal image probe priority.
Definition image.h:156
#define __image_type(probe_order)
An executable image type.
Definition image.h:170
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:104
An ASN.1 object cursor.
Definition asn1.h:21
An executable image type.
Definition image.h:95