iPXE
|
DER-encoded ASN.1 data. More...
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include <ipxe/asn1.h>
#include <ipxe/der.h>
#include <ipxe/uaccess.h>
#include <ipxe/image.h>
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | der_asn1 (struct image *image, size_t offset __unused, struct asn1_cursor **cursor) |
Extract ASN.1 object from image. More... | |
static int | der_probe (struct image *image) |
Probe DER image. More... | |
struct image_type der_image_type | __image_type (PROBE_NORMAL) |
DER image type. More... | |
DER-encoded ASN.1 data.
Definition in file der.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Extract ASN.1 object from image.
image | DER image |
offset | Offset within image |
cursor | ASN.1 cursor to fill in |
next | Offset to next image, or negative error |
The caller is responsible for eventually calling free() on the allocated ASN.1 cursor.
Definition at line 51 of file der.c.
References copy_from_user(), data, image::data, ENOMEM, image::len, and malloc().
|
static |
Probe DER image.
image | DER image |
rc | Return status code |
Definition at line 75 of file der.c.
References asn1_enter_partial(), ASN1_SEQUENCE, copy_from_user(), asn1_cursor::data, image::data, DBGC, ENOEXEC, extra, asn1_cursor::len, image::len, image::name, rc, and strerror().
struct image_type der_image_type __image_type | ( | PROBE_NORMAL | ) |
DER image type.