|
iPXE
|
PEM-encoded ASN.1 data. More...
Go to the source code of this file.
Macros | |
| #define | PEM_BEGIN "-----BEGIN" |
| Pre-encapsulation boundary marker. More... | |
| #define | PEM_END "-----END" |
| Post-encapsulation boundary marker. More... | |
Functions | |
| 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. More... | |
| struct image_type pem_image_type | __image_type (PROBE_NORMAL) |
PEM-encoded ASN.1 data.
Definition in file pem.h.
| #define PEM_BEGIN "-----BEGIN" |
| 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.
| data | PEM data |
| len | Length of PEM data |
| offset | Offset within data |
| cursor | ASN.1 cursor to fill in |
| next | Offset to next object, or negative error |
The caller is responsible for eventually calling free() on the allocated ASN.1 cursor.
Definition at line 103 of file pem.c.
References assert(), base64_decode(), base64_decoded_max_len(), data, DBGC, end, ENOMEM, free, len, malloc(), memcpy(), NULL, offset, PEM_BEGIN, PEM_END, pem_marker(), pem_next(), rc, and strerror().
Referenced by efisig_asn1(), ipair_rx_pubkey(), and pem_image_asn1().
| struct image_type pem_image_type __image_type | ( | PROBE_NORMAL | ) |
1.8.15