63 *cursor =
malloc (
sizeof ( **cursor ) + remaining );
66 raw = ( ( (
void * ) *cursor ) +
sizeof ( **cursor ) );
69 (*cursor)->data =
raw;
70 (*cursor)->len = remaining;
76 return (
offset + (*cursor)->len );
95 DBGC (
image,
"DER %s is not valid ASN.1: %s\n",
129 DBGC (
image,
"DER %s could not extract ASN.1: %s\n",
struct arbelprm_rc_send_wqe rc
int asn1_skip(struct asn1_cursor *cursor, unsigned int type)
Skip ASN.1 object.
int asn1_shrink_any(struct asn1_cursor *cursor)
Shrink ASN.1 object of any type.
#define ASN1_SEQUENCE
ASN.1 sequence.
#define assert(condition)
Assert a condition at run-time.
uint16_t offset
Offset to command line.
int der_asn1(const void *data, size_t len, size_t offset, struct asn1_cursor **cursor)
Extract ASN.1 object from DER data.
static int der_image_asn1(struct image *image, size_t offset, struct asn1_cursor **cursor)
Extract ASN.1 object from DER image.
static int der_image_probe(struct image *image)
Probe DER image.
uint32_t next
Next descriptor address.
uint8_t data[48]
Additional event data.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define ENOEXEC
Exec format error.
#define ENOMEM
Not enough space.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define PROBE_NORMAL
Normal image probe priority.
#define __image_type(probe_order)
An executable image type.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
void * malloc(size_t size)
Allocate memory.
char * strerror(int errno)
Retrieve string representation of error number.
const void * data
Start of data.
size_t len
Length of data.
An executable image type.
const void * data
Read-only data.
size_t len
Length of raw file image.