Dillo v3.1.1-99-gf3103cc4
|
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "../dpip/dpip.h"
#include "dpiutil.h"
#include "../src/misc.h"
Go to the source code of this file.
Macros | |
#define | SILENT 1 |
#define | _MSG(...) |
#define | MSG(...) |
Functions | |
static void | b64strip_illegal_chars (unsigned char *str) |
static int | b64decode (unsigned char *str) |
static int | Url_decode_hex_octet (const char *s) |
char * | a_Url_decode_hex_str (const char *str, size_t *p_sz) |
static void | send_decoded_data (const char *url, const char *mime_type, unsigned char *data, size_t data_sz) |
static void | send_failure_message (const char *url, const char *mime_type, unsigned char *data, size_t data_sz) |
static char * | datauri_get_mime (char *url) |
static unsigned char * | datauri_get_data (char *url, size_t *p_sz) |
int | main (void) |
Variables | |
static Dsh * | sh = NULL |
char * a_Url_decode_hex_str | ( | const char * | str, |
size_t * | p_sz | ||
) |
Definition at line 137 of file datauri.c.
References dNew, dRealloc(), and Url_decode_hex_octet().
Referenced by a_Nav_expect_done(), datauri_get_data(), and Html_tag_open_a().
|
static |
Definition at line 55 of file datauri.c.
Referenced by datauri_get_data().
|
static |
Definition at line 41 of file datauri.c.
References d_isascii, and MSG.
Referenced by datauri_get_data().
|
static |
Definition at line 256 of file datauri.c.
References a_Url_decode_hex_str(), b64decode(), b64strip_illegal_chars(), dStrdup(), dStrnAsciiCasecmp(), and Unescape_uri_str().
Referenced by main().
|
static |
Definition at line 221 of file datauri.c.
References dStrAsciiCasecmp(), dStrconcat(), dStrdup(), and dStrnAsciiCasecmp().
Referenced by main().
int main | ( | void | ) |
Definition at line 287 of file datauri.c.
References a_Dpip_check_auth(), a_Dpip_dsh_close(), a_Dpip_dsh_free(), a_Dpip_dsh_new(), a_Dpip_dsh_read_token(), a_Dpip_get_attr(), datauri_get_data(), datauri_get_mime(), dFree(), dStrerror, MSG, send_decoded_data(), send_failure_message(), and sh.
|
static |
Definition at line 164 of file datauri.c.
References a_Dpip_build_cmd(), a_Dpip_dsh_write(), a_Dpip_dsh_write_str(), dFree(), and sh.
Referenced by main().
|
static |
Definition at line 183 of file datauri.c.
References a_Dpip_build_cmd(), a_Dpip_dsh_write_str(), dFree(), and sh.
Referenced by main().
|
static |
Definition at line 119 of file datauri.c.
Referenced by a_Url_decode_hex_str().
|
static |
Definition at line 39 of file datauri.c.
Referenced by Bmsrv_add_bm(), Bmsrv_check_modify_request(), Bmsrv_dpi_send_status_msg(), Bmsrv_modify_add_url(), Bmsrv_parse_token(), Bmsrv_process_modify_request(), Bmsrv_send_modify_answer(), Bmsrv_send_modify_page(), Bmsrv_send_modify_page_add_section(), Bmsrv_send_modify_page_add_url(), Bmsrv_send_modify_update(), Bmsrv_send_reload_request(), get_command(), get_request(), main(), read_req_cb(), send_bm_page(), send_decoded_data(), send_dpip_tag(), send_failure_message(), send_html_text(), send_numbered_text(), send_plain_text(), and srv_parse_tok().