|
iPXE
|
Data URIs. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static size_t | datauri_max_len (struct uri *uri) |
| Get maximum length of parsed data URI. | |
| int | datauri_parse (struct uri *uri, void *buf) |
| Parse data URI. | |
Data URIs.
Definition in file datauri.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
Get maximum length of parsed data URI.
| uri | Data URI |
| max_len | Maximum length |
Definition at line 23 of file datauri.h.
References uri::opaque, and strlen().
Referenced by datauri_fail_okx(), datauri_okx(), and datauri_open().
|
extern |
Parse data URI.
| uri | Data URI |
| buf | Buffer to fill in |
| len | Length of data, or negative error |
The buffer length must be at least the size reported by datauri_max_len().
Definition at line 62 of file datauri.c.
References base64_decode(), DBGC, DBGC_HDA, EINVAL, len, uri::opaque, rc, strchr(), strcpy(), strerror(), strlen(), and strncasecmp().
Referenced by datauri_fail_okx(), datauri_okx(), and datauri_open().