|
iPXE
|
gzip compressed images More...
#include <stdlib.h>#include <string.h>#include <errno.h>#include <assert.h>#include <ipxe/deflate.h>#include <ipxe/image.h>#include <ipxe/zlib.h>#include <ipxe/gzip.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static int | gzip_extract (struct image *image, struct image *extracted) |
| Extract gzip image. | |
| static int | gzip_probe (struct image *image) |
| Probe gzip image. | |
| struct image_type gzip_image_type | __image_type (PROBE_NORMAL) |
| gzip image type | |
gzip compressed images
Definition in file gzip.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
Extract gzip image.
| image | Image |
| extracted | Extracted image |
| rc | Return status code |
Definition at line 49 of file gzip.c.
References assert, gzip_crc_header::crc, gzip_footer::crc, data, image::data, DBGC, DEFLATE_RAW, EINVAL, extra, GZIP_FL_COMMENT, GZIP_FL_EXTRA, GZIP_FL_HCRC, GZIP_FL_NAME, header, image_set_len(), le16_to_cpu, le32_to_cpu, gzip_footer::len, image::len, len, image::name, rc, strerror(), strnlen(), and zlib_deflate().
Referenced by __image_type().
|
static |
Probe gzip image.
| image | gzip image |
| rc | Return status code |
Definition at line 150 of file gzip.c.
References cpu_to_be16, image::data, DBGC, ENOEXEC, GZIP_MAGIC, header, image::len, and image::name.
Referenced by __image_type().
| struct image_type gzip_image_type __image_type | ( | PROBE_NORMAL | ) |
gzip image type
References __image_type, gzip_extract(), gzip_probe(), image_extract_exec(), and PROBE_NORMAL.