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/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 */
int pem_asn1(userptr_t data, size_t len, size_t offset, struct asn1_cursor **cursor)
Extract ASN.1 object from PEM data.
Definition: pem.c:105
An executable image type.
Definition: image.h:76
#define PROBE_NORMAL
Normal image probe priority.
Definition: image.h:129
Access to external ("user") memory.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Executable images.
ASN.1 encoding.
static userptr_t size_t offset
Offset of the first segment within the content.
Definition: deflate.h:259
uint32_t len
Length.
Definition: ena.h:14
struct arbelprm_port_state_change_st data
Message.
Definition: arbel.h:12
struct image_type pem_image_type __image_type(PROBE_NORMAL)
An ASN.1 object cursor.
Definition: asn1.h:19
unsigned long userptr_t
A pointer to a user buffer.
Definition: uaccess.h:33