|
Pyrogenesis
13997
|
#include <sys/types.h>#include <sys/stat.h>#include <errno.h>#include <signal.h>#include <fcntl.h>#include <time.h>#include <stdlib.h>#include <stdarg.h>#include <assert.h>#include <string.h>#include <ctype.h>#include <limits.h>#include <stddef.h>#include <stdio.h>#include <sys/wait.h>#include <sys/socket.h>#include <sys/select.h>#include <netinet/in.h>#include <arpa/inet.h>#include <sys/time.h>#include <stdint.h>#include <inttypes.h>#include <netdb.h>#include <pwd.h>#include <unistd.h>#include <dirent.h>#include <dlfcn.h>#include <pthread.h>#include "mongoose.h"Go to the source code of this file.
Classes | |
| struct | ssl_func |
| struct | usa |
| struct | vec |
| struct | mgstat |
| struct | socket |
| struct | mg_context |
| struct | mg_connection |
| struct | MD5Context |
| struct | ah |
| struct | de |
| struct | dir_scan_data |
| struct | cgi_env_block |
Macros | |
| #define | _XOPEN_SOURCE 600 |
| #define | _LARGEFILE_SOURCE |
| #define | __STDC_FORMAT_MACROS |
| #define | SSL_LIB "libssl.so" |
| #define | CRYPTO_LIB "libcrypto.so" |
| #define | DIRSEP '/' |
| #define | IS_DIRSEP_CHAR(c) ((c) == '/') |
| #define | O_BINARY 0 |
| #define | closesocket(a) close(a) |
| #define | mg_fopen(x, y) fopen(x, y) |
| #define | mg_mkdir(x, y) mkdir(x, y) |
| #define | mg_remove(x) remove(x) |
| #define | mg_rename(x, y) rename(x, y) |
| #define | ERRNO errno |
| #define | INVALID_SOCKET (-1) |
| #define | INT64_FMT PRId64 |
| #define | WINCDECL |
| #define | MONGOOSE_VERSION "3.1" |
| #define | PASSWORDS_FILE_NAME ".htpasswd" |
| #define | CGI_ENVIRONMENT_SIZE 4096 |
| #define | MAX_CGI_ENVIR_VARS 64 |
| #define | ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0])) |
| #define | DEBUG_TRACE(x) |
| #define | SSL_ERROR_WANT_READ 2 |
| #define | SSL_ERROR_WANT_WRITE 3 |
| #define | SSL_FILETYPE_PEM 1 |
| #define | CRYPTO_LOCK 1 |
| #define | SSL_free (* (void (*)(SSL *)) ssl_sw[0].ptr) |
| #define | SSL_accept (* (int (*)(SSL *)) ssl_sw[1].ptr) |
| #define | SSL_connect (* (int (*)(SSL *)) ssl_sw[2].ptr) |
| #define | SSL_read (* (int (*)(SSL *, void *, int)) ssl_sw[3].ptr) |
| #define | SSL_write (* (int (*)(SSL *, const void *,int)) ssl_sw[4].ptr) |
| #define | SSL_get_error (* (int (*)(SSL *, int)) ssl_sw[5].ptr) |
| #define | SSL_set_fd (* (int (*)(SSL *, SOCKET)) ssl_sw[6].ptr) |
| #define | SSL_new (* (SSL * (*)(SSL_CTX *)) ssl_sw[7].ptr) |
| #define | SSL_CTX_new (* (SSL_CTX * (*)(SSL_METHOD *)) ssl_sw[8].ptr) |
| #define | SSLv23_server_method (* (SSL_METHOD * (*)(void)) ssl_sw[9].ptr) |
| #define | SSL_library_init (* (int (*)(void)) ssl_sw[10].ptr) |
| #define | SSL_CTX_use_PrivateKey_file |
| #define | SSL_CTX_use_certificate_file |
| #define | SSL_CTX_set_default_passwd_cb (* (void (*)(SSL_CTX *, mg_callback_t)) ssl_sw[13].ptr) |
| #define | SSL_CTX_free (* (void (*)(SSL_CTX *)) ssl_sw[14].ptr) |
| #define | SSL_load_error_strings (* (void (*)(void)) ssl_sw[15].ptr) |
| #define | SSL_CTX_use_certificate_chain_file (* (int (*)(SSL_CTX *, const char *)) ssl_sw[16].ptr) |
| #define | CRYPTO_num_locks (* (int (*)(void)) crypto_sw[0].ptr) |
| #define | CRYPTO_set_locking_callback (* (void (*)(void (*)(int, int, const char *, int))) crypto_sw[1].ptr) |
| #define | CRYPTO_set_id_callback (* (void (*)(unsigned long (*)(void))) crypto_sw[2].ptr) |
| #define | ERR_get_error (* (unsigned long (*)(void)) crypto_sw[3].ptr) |
| #define | ERR_error_string (* (char * (*)(unsigned long,char *)) crypto_sw[4].ptr) |
| #define | ENTRIES_PER_CONFIG_OPTION 3 |
| #define | HEXTOI(x) (isdigit(x) ? x - '0' : x - 'W') |
| #define | F1(x, y, z) (z ^ (x & (y ^ z))) |
| #define | F2(x, y, z) F1(z, x, y) |
| #define | F3(x, y, z) (x ^ y ^ z) |
| #define | F4(x, y, z) (y ^ (x | ~z)) |
| #define | MD5STEP(f, w, x, y, z, data, s) ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) |
Typedefs | |
| typedef int | SOCKET |
| typedef void *(* | mg_thread_func_t )(void *) |
| typedef struct ssl_st | SSL |
| typedef struct ssl_method_st | SSL_METHOD |
| typedef struct ssl_ctx_st | SSL_CTX |
| typedef struct MD5Context | MD5_CTX |
Functions | |
| const char ** | mg_get_valid_option_names (void) |
| static void * | call_user (struct mg_connection *conn, enum mg_event event) |
| static int | get_option_index (const char *name) |
| const char * | mg_get_option (const struct mg_context *ctx, const char *name) |
| static void | cry (struct mg_connection *conn, const char *fmt,...) |
| static const char * | ssl_error (void) |
| static struct mg_connection * | fc (struct mg_context *ctx) |
| const char * | mg_version (void) |
| static void | mg_strlcpy (register char *dst, register const char *src, size_t n) |
| static int | lowercase (const char *s) |
| static int | mg_strncasecmp (const char *s1, const char *s2, size_t len) |
| static int | mg_strcasecmp (const char *s1, const char *s2) |
| static char * | mg_strndup (const char *ptr, size_t len) |
| static char * | mg_strdup (const char *str) |
| static int | mg_vsnprintf (struct mg_connection *conn, char *buf, size_t buflen, const char *fmt, va_list ap) |
| static int | mg_snprintf (struct mg_connection *conn, char *buf, size_t buflen, const char *fmt,...) |
| static char * | skip_quoted (char **buf, const char *delimiters, const char *whitespace, char quotechar) |
| static char * | skip (char **buf, const char *delimiters) |
| static const char * | get_header (const struct mg_request_info *ri, const char *name) |
| const char * | mg_get_header (const struct mg_connection *conn, const char *name) |
| static const char * | next_option (const char *list, struct vec *val, struct vec *eq_val) |
| static int | match_extension (const char *path, const char *ext_list) |
| static int | should_keep_alive (const struct mg_connection *conn) |
| static const char * | suggest_connection_header (const struct mg_connection *conn) |
| static void | send_http_error (struct mg_connection *conn, int status, const char *reason, const char *fmt,...) |
| static int | mg_stat (const char *path, struct mgstat *stp) |
| static void | set_close_on_exec (int fd) |
| static int | start_thread (struct mg_context *ctx, mg_thread_func_t func, void *param) |
| static pid_t | spawn_process (struct mg_connection *conn, const char *prog, char *envblk, char *envp[], int fd_stdin, int fd_stdout, const char *dir) |
| static int | set_non_blocking_mode (SOCKET sock) |
| static int64_t | push (FILE *fp, SOCKET sock, SSL *ssl, const char *buf, int64_t len) |
| static int | pull (FILE *fp, SOCKET sock, SSL *ssl, char *buf, int len) |
| int | mg_read (struct mg_connection *conn, void *buf, size_t len) |
| int | mg_write (struct mg_connection *conn, const void *buf, size_t len) |
| int | mg_printf (struct mg_connection *conn, const char *fmt,...) |
| static size_t | url_decode (const char *src, size_t src_len, char *dst, size_t dst_len, int is_form_url_encoded) |
| int | mg_get_var (const char *buf, size_t buf_len, const char *name, char *dst, size_t dst_len) |
| int | mg_get_cookie (const struct mg_connection *conn, const char *cookie_name, char *dst, size_t dst_size) |
| static int | get_document_root (const struct mg_connection *conn, struct vec *document_root) |
| static void | convert_uri_to_file_name (struct mg_connection *conn, const char *uri, char *buf, size_t buf_len) |
| static int | sslize (struct mg_connection *conn, int(*func)(SSL *)) |
| static struct mg_connection * | mg_connect (struct mg_connection *conn, const char *host, int port, int use_ssl) |
| static int | get_request_len (const char *buf, int buflen) |
| static int | get_month_index (const char *s) |
| static time_t | parse_date_string (const char *datetime) |
| static void | remove_double_dots_and_double_slashes (char *s) |
| static void | get_mime_type (struct mg_context *ctx, const char *path, struct vec *vec) |
| static void | byteReverse (unsigned char *buf, unsigned longs) |
| static void | MD5Init (MD5_CTX *ctx) |
| static void | MD5Transform (uint32_t buf[4], uint32_t const in[16]) |
| static void | MD5Update (MD5_CTX *ctx, unsigned char const *buf, unsigned len) |
| static void | MD5Final (unsigned char digest[16], MD5_CTX *ctx) |
| static void | bin2str (char *to, const unsigned char *p, size_t len) |
| void | mg_md5 (char *buf,...) |
| static int | check_password (const char *method, const char *ha1, const char *uri, const char *nonce, const char *nc, const char *cnonce, const char *qop, const char *response) |
| static FILE * | open_auth_file (struct mg_connection *conn, const char *path) |
| static int | parse_auth_header (struct mg_connection *conn, char *buf, size_t buf_size, struct ah *ah) |
| static int | authorize (struct mg_connection *conn, FILE *fp) |
| static int | check_authorization (struct mg_connection *conn, const char *path) |
| static void | send_authorization_request (struct mg_connection *conn) |
| static int | is_authorized_for_put (struct mg_connection *conn) |
| int | mg_modify_passwords_file (const char *fname, const char *domain, const char *user, const char *pass) |
| static void | url_encode (const char *src, char *dst, size_t dst_len) |
| static void | print_dir_entry (struct de *de) |
| static int WINCDECL | compare_dir_entries (const void *p1, const void *p2) |
| static int | scan_directory (struct mg_connection *conn, const char *dir, void *data, void(*cb)(struct de *, void *)) |
| static void | dir_scan_callback (struct de *de, void *data) |
| static void | handle_directory_request (struct mg_connection *conn, const char *dir) |
| static void | send_file_data (struct mg_connection *conn, FILE *fp, int64_t len) |
| static int | parse_range_header (const char *header, int64_t *a, int64_t *b) |
| static void | gmt_time_string (char *buf, size_t buf_len, time_t *t) |
| static void | handle_file_request (struct mg_connection *conn, const char *path, struct mgstat *stp) |
| void | mg_send_file (struct mg_connection *conn, const char *path) |
| static void | parse_http_headers (char **buf, struct mg_request_info *ri) |
| static int | is_valid_http_method (const char *method) |
| static int | parse_http_request (char *buf, struct mg_request_info *ri) |
| static int | read_request (FILE *fp, SOCKET sock, SSL *ssl, char *buf, int bufsiz, int *nread) |
| static int | substitute_index_file (struct mg_connection *conn, char *path, size_t path_len, struct mgstat *stp) |
| static int | is_not_modified (const struct mg_connection *conn, const struct mgstat *stp) |
| static int | forward_body_data (struct mg_connection *conn, FILE *fp, SOCKET sock, SSL *ssl) |
| static char * | addenv (struct cgi_env_block *block, const char *fmt,...) |
| static void | prepare_cgi_environment (struct mg_connection *conn, const char *prog, struct cgi_env_block *blk) |
| static void | handle_cgi_request (struct mg_connection *conn, const char *prog) |
| static int | put_dir (const char *path) |
| static void | put_file (struct mg_connection *conn, const char *path) |
| static void | send_ssi_file (struct mg_connection *, const char *, FILE *, int) |
| static void | do_ssi_include (struct mg_connection *conn, const char *ssi, char *tag, int include_level) |
| static void | do_ssi_exec (struct mg_connection *conn, char *tag) |
| static void | handle_ssi_file_request (struct mg_connection *conn, const char *path) |
| static void | send_options (struct mg_connection *conn) |
| static void | print_props (struct mg_connection *conn, const char *uri, struct mgstat *st) |
| static void | print_dav_dir_entry (struct de *de, void *data) |
| static void | handle_propfind (struct mg_connection *conn, const char *path, struct mgstat *st) |
| static void | handle_request (struct mg_connection *conn) |
| static void | close_all_listening_sockets (struct mg_context *ctx) |
| static int | parse_port_string (const struct vec *vec, struct socket *so) |
| static int | set_ports_option (struct mg_context *ctx) |
| static void | log_header (const struct mg_connection *conn, const char *header, FILE *fp) |
| static void | log_access (const struct mg_connection *conn) |
| static int | isbyte (int n) |
| static int | check_acl (struct mg_context *ctx, const struct usa *usa) |
| static void | add_to_set (SOCKET fd, fd_set *set, int *max_fd) |
| static int | set_uid_option (struct mg_context *ctx) |
| static void | ssl_locking_callback (int mode, int mutex_num, const char *file, int line) |
| static unsigned long | ssl_id_callback (void) |
| static int | load_dll (struct mg_context *ctx, const char *dll_name, struct ssl_func *sw) |
| static int | set_ssl_option (struct mg_context *ctx) |
| static void | uninitialize_ssl (struct mg_context *ctx) |
| static int | set_gpass_option (struct mg_context *ctx) |
| static int | set_acl_option (struct mg_context *ctx) |
| static void | reset_per_request_attributes (struct mg_connection *conn) |
| static void | close_socket_gracefully (SOCKET sock) |
| static void | close_connection (struct mg_connection *conn) |
| static void | discard_current_request_from_buffer (struct mg_connection *conn) |
| static int | parse_url (const char *url, char *host, int *port) |
| static void | handle_proxy_request (struct mg_connection *conn) |
| static int | is_valid_uri (const char *uri) |
| static void | process_new_connection (struct mg_connection *conn) |
| static int | consume_socket (struct mg_context *ctx, struct socket *sp) |
| static void | worker_thread (struct mg_context *ctx) |
| static void | produce_socket (struct mg_context *ctx, const struct socket *sp) |
| static void | accept_new_connection (const struct socket *listener, struct mg_context *ctx) |
| static void | master_thread (struct mg_context *ctx) |
| static void | free_context (struct mg_context *ctx) |
| void | mg_stop (struct mg_context *ctx) |
| struct mg_context * | mg_start (mg_callback_t user_callback, void *user_data, const char **options) |
Variables | |
| static const char * | http_500_error = "Internal Server Error" |
| static struct ssl_func | ssl_sw [] |
| static struct ssl_func | crypto_sw [] |
| static const char * | month_names [] |
| static const char * | config_options [] |
| struct { | |
| const char * extension | |
| size_t ext_len | |
| const char * mime_type | |
| size_t mime_type_len | |
| } | builtin_mime_types [] |
| static pthread_mutex_t * | ssl_mutexes |
| #define __STDC_FORMAT_MACROS |
Definition at line 26 of file mongoose_orig.c.
| #define _LARGEFILE_SOURCE |
Definition at line 25 of file mongoose_orig.c.
| #define _XOPEN_SOURCE 600 |
Definition at line 24 of file mongoose_orig.c.
| #define ARRAY_SIZE | ( | array | ) | (sizeof(array) / sizeof(array[0])) |
Definition at line 222 of file mongoose_orig.c.
| #define CGI_ENVIRONMENT_SIZE 4096 |
Definition at line 220 of file mongoose_orig.c.
| #define closesocket | ( | a | ) | close(a) |
Definition at line 203 of file mongoose_orig.c.
| #define CRYPTO_LIB "libcrypto.so" |
Definition at line 195 of file mongoose_orig.c.
| #define CRYPTO_LOCK 1 |
Definition at line 264 of file mongoose_orig.c.
| #define CRYPTO_num_locks (* (int (*)(void)) crypto_sw[0].ptr) |
Definition at line 318 of file mongoose_orig.c.
| #define CRYPTO_set_id_callback (* (void (*)(unsigned long (*)(void))) crypto_sw[2].ptr) |
Definition at line 321 of file mongoose_orig.c.
| #define CRYPTO_set_locking_callback (* (void (*)(void (*)(int, int, const char *, int))) crypto_sw[1].ptr) |
Definition at line 319 of file mongoose_orig.c.
| #define DEBUG_TRACE | ( | x | ) |
Definition at line 242 of file mongoose_orig.c.
| #define DIRSEP '/' |
Definition at line 198 of file mongoose_orig.c.
| #define ENTRIES_PER_CONFIG_OPTION 3 |
Definition at line 437 of file mongoose_orig.c.
| #define ERR_error_string (* (char * (*)(unsigned long,char *)) crypto_sw[4].ptr) |
Definition at line 324 of file mongoose_orig.c.
| #define ERR_get_error (* (unsigned long (*)(void)) crypto_sw[3].ptr) |
Definition at line 323 of file mongoose_orig.c.
| #define ERRNO errno |
Definition at line 208 of file mongoose_orig.c.
| #define F1 | ( | x, | |
| y, | |||
| z | |||
| ) | (z ^ (x & (y ^ z))) |
Definition at line 1798 of file mongoose_orig.c.
| #define F2 | ( | x, | |
| y, | |||
| z | |||
| ) | F1(z, x, y) |
Definition at line 1799 of file mongoose_orig.c.
| #define F3 | ( | x, | |
| y, | |||
| z | |||
| ) | (x ^ y ^ z) |
Definition at line 1800 of file mongoose_orig.c.
| #define F4 | ( | x, | |
| y, | |||
| z | |||
| ) | (y ^ (x | ~z)) |
Definition at line 1801 of file mongoose_orig.c.
| #define HEXTOI | ( | x | ) | (isdigit(x) ? x - '0' : x - 'W') |
| #define INT64_FMT PRId64 |
Definition at line 210 of file mongoose_orig.c.
| #define INVALID_SOCKET (-1) |
Definition at line 209 of file mongoose_orig.c.
| #define IS_DIRSEP_CHAR | ( | c | ) | ((c) == '/') |
Definition at line 199 of file mongoose_orig.c.
| #define MAX_CGI_ENVIR_VARS 64 |
Definition at line 221 of file mongoose_orig.c.
| #define MD5STEP | ( | f, | |
| w, | |||
| x, | |||
| y, | |||
| z, | |||
| data, | |||
| s | |||
| ) | ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) |
Definition at line 1803 of file mongoose_orig.c.
| #define mg_fopen | ( | x, | |
| y | |||
| ) | fopen(x, y) |
Definition at line 204 of file mongoose_orig.c.
| #define mg_mkdir | ( | x, | |
| y | |||
| ) | mkdir(x, y) |
Definition at line 205 of file mongoose_orig.c.
| #define mg_remove | ( | x | ) | remove(x) |
Definition at line 206 of file mongoose_orig.c.
| #define mg_rename | ( | x, | |
| y | |||
| ) | rename(x, y) |
Definition at line 207 of file mongoose_orig.c.
| #define MONGOOSE_VERSION "3.1" |
Definition at line 218 of file mongoose_orig.c.
| #define O_BINARY 0 |
Definition at line 201 of file mongoose_orig.c.
| #define PASSWORDS_FILE_NAME ".htpasswd" |
Definition at line 219 of file mongoose_orig.c.
Definition at line 297 of file mongoose_orig.c.
Definition at line 298 of file mongoose_orig.c.
Definition at line 313 of file mongoose_orig.c.
| #define SSL_CTX_new (* (SSL_CTX * (*)(SSL_METHOD *)) ssl_sw[8].ptr) |
Definition at line 304 of file mongoose_orig.c.
| #define SSL_CTX_set_default_passwd_cb (* (void (*)(SSL_CTX *, mg_callback_t)) ssl_sw[13].ptr) |
Definition at line 311 of file mongoose_orig.c.
Definition at line 315 of file mongoose_orig.c.
| #define SSL_CTX_use_certificate_file |
Definition at line 309 of file mongoose_orig.c.
| #define SSL_CTX_use_PrivateKey_file |
Definition at line 307 of file mongoose_orig.c.
| #define SSL_ERROR_WANT_READ 2 |
Definition at line 261 of file mongoose_orig.c.
| #define SSL_ERROR_WANT_WRITE 3 |
Definition at line 262 of file mongoose_orig.c.
| #define SSL_FILETYPE_PEM 1 |
Definition at line 263 of file mongoose_orig.c.
Definition at line 296 of file mongoose_orig.c.
Definition at line 301 of file mongoose_orig.c.
| #define SSL_LIB "libssl.so" |
Definition at line 192 of file mongoose_orig.c.
| #define SSL_library_init (* (int (*)(void)) ssl_sw[10].ptr) |
Definition at line 306 of file mongoose_orig.c.
| #define SSL_load_error_strings (* (void (*)(void)) ssl_sw[15].ptr) |
Definition at line 314 of file mongoose_orig.c.
Definition at line 303 of file mongoose_orig.c.
Definition at line 299 of file mongoose_orig.c.
Definition at line 302 of file mongoose_orig.c.
Definition at line 300 of file mongoose_orig.c.
| #define SSLv23_server_method (* (SSL_METHOD * (*)(void)) ssl_sw[9].ptr) |
Definition at line 305 of file mongoose_orig.c.
| #define WINCDECL |
Definition at line 212 of file mongoose_orig.c.
| typedef struct MD5Context MD5_CTX |
| typedef void*(* mg_thread_func_t)(void *) |
Definition at line 250 of file mongoose_orig.c.
| typedef int SOCKET |
Definition at line 211 of file mongoose_orig.c.
| typedef struct ssl_st SSL |
Definition at line 257 of file mongoose_orig.c.
| typedef struct ssl_ctx_st SSL_CTX |
Definition at line 259 of file mongoose_orig.c.
| typedef struct ssl_method_st SSL_METHOD |
Definition at line 258 of file mongoose_orig.c.
| anonymous enum |
Definition at line 401 of file mongoose_orig.c.
|
static |
Definition at line 4050 of file mongoose_orig.c.
|
static |
Definition at line 3577 of file mongoose_orig.c.
|
static |
Definition at line 2776 of file mongoose_orig.c.
|
static |
Definition at line 2126 of file mongoose_orig.c.
|
static |
Definition at line 1967 of file mongoose_orig.c.
|
static |
Definition at line 1787 of file mongoose_orig.c.
|
static |
Definition at line 479 of file mongoose_orig.c.
|
static |
Definition at line 3531 of file mongoose_orig.c.
|
static |
Definition at line 2152 of file mongoose_orig.c.
|
static |
Definition at line 1997 of file mongoose_orig.c.
|
static |
Definition at line 3378 of file mongoose_orig.c.
|
static |
Definition at line 3797 of file mongoose_orig.c.
|
static |
Definition at line 3769 of file mongoose_orig.c.
|
static |
Definition at line 2336 of file mongoose_orig.c.
|
static |
Definition at line 3957 of file mongoose_orig.c.
|
static |
Definition at line 1546 of file mongoose_orig.c.
|
static |
Definition at line 509 of file mongoose_orig.c.
|
static |
Definition at line 2406 of file mongoose_orig.c.
|
static |
Definition at line 3808 of file mongoose_orig.c.
|
static |
Definition at line 3136 of file mongoose_orig.c.
|
static |
Definition at line 3088 of file mongoose_orig.c.
|
static |
Definition at line 562 of file mongoose_orig.c.
|
static |
Definition at line 2701 of file mongoose_orig.c.
|
static |
Definition at line 4138 of file mongoose_orig.c.
|
static |
Definition at line 1525 of file mongoose_orig.c.
|
static |
Definition at line 709 of file mongoose_orig.c.
|
static |
Definition at line 1741 of file mongoose_orig.c.
|
static |
Definition at line 1630 of file mongoose_orig.c.
|
static |
Definition at line 485 of file mongoose_orig.c.
|
static |
Definition at line 1609 of file mongoose_orig.c.
|
static |
Definition at line 2503 of file mongoose_orig.c.
|
static |
Definition at line 2903 of file mongoose_orig.c.
|
static |
Definition at line 2425 of file mongoose_orig.c.
|
static |
Definition at line 2507 of file mongoose_orig.c.
|
static |
Definition at line 3273 of file mongoose_orig.c.
|
static |
Definition at line 3845 of file mongoose_orig.c.
|
static |
Definition at line 3303 of file mongoose_orig.c.
|
static |
Definition at line 3216 of file mongoose_orig.c.
|
static |
Definition at line 2197 of file mongoose_orig.c.
|
static |
Definition at line 2695 of file mongoose_orig.c.
|
static |
Definition at line 2594 of file mongoose_orig.c.
|
static |
Definition at line 3897 of file mongoose_orig.c.
|
static |
Definition at line 3525 of file mongoose_orig.c.
|
static |
Definition at line 3628 of file mongoose_orig.c.
|
static |
Definition at line 3489 of file mongoose_orig.c.
|
static |
Definition at line 3478 of file mongoose_orig.c.
|
static |
Definition at line 579 of file mongoose_orig.c.
|
static |
Definition at line 4074 of file mongoose_orig.c.
|
static |
Definition at line 763 of file mongoose_orig.c.
|
static |
Definition at line 1936 of file mongoose_orig.c.
|
static |
Definition at line 1808 of file mongoose_orig.c.
Definition at line 1818 of file mongoose_orig.c.
|
static |
Definition at line 1900 of file mongoose_orig.c.
|
static |
Definition at line 1568 of file mongoose_orig.c.
| int mg_get_cookie | ( | const struct mg_connection * | conn, |
| const char * | cookie_name, | ||
| char * | dst, | ||
| size_t | dst_size | ||
| ) |
Definition at line 1488 of file mongoose_orig.c.
| const char* mg_get_header | ( | const struct mg_connection * | conn, |
| const char * | name | ||
| ) |
Definition at line 720 of file mongoose_orig.c.
| const char* mg_get_option | ( | const struct mg_context * | ctx, |
| const char * | name | ||
| ) |
Definition at line 497 of file mongoose_orig.c.
| const char** mg_get_valid_option_names | ( | void | ) |
Definition at line 475 of file mongoose_orig.c.
| int mg_get_var | ( | const char * | buf, |
| size_t | buf_len, | ||
| const char * | name, | ||
| char * | dst, | ||
| size_t | dst_len | ||
| ) |
Definition at line 1452 of file mongoose_orig.c.
| void mg_md5 | ( | char * | buf, |
| ... | |||
| ) |
Definition at line 1978 of file mongoose_orig.c.
| int mg_modify_passwords_file | ( | const char * | fname, |
| const char * | domain, | ||
| const char * | user, | ||
| const char * | pass | ||
| ) |
Definition at line 2212 of file mongoose_orig.c.
| int mg_printf | ( | struct mg_connection * | conn, |
| const char * | fmt, | ||
| ... | |||
| ) |
Definition at line 1405 of file mongoose_orig.c.
| int mg_read | ( | struct mg_connection * | conn, |
| void * | buf, | ||
| size_t | len | ||
| ) |
Definition at line 1350 of file mongoose_orig.c.
| void mg_send_file | ( | struct mg_connection * | conn, |
| const char * | path | ||
| ) |
Definition at line 2570 of file mongoose_orig.c.
|
static |
Definition at line 644 of file mongoose_orig.c.
| struct mg_context* mg_start | ( | mg_callback_t | user_callback, |
| void * | user_data, | ||
| const char ** | options | ||
| ) |
Definition at line 4175 of file mongoose_orig.c.
|
static |
Definition at line 1202 of file mongoose_orig.c.
| void mg_stop | ( | struct mg_context * | ctx | ) |
Definition at line 4161 of file mongoose_orig.c.
|
static |
Definition at line 594 of file mongoose_orig.c.
|
static |
Definition at line 614 of file mongoose_orig.c.
|
static |
Definition at line 572 of file mongoose_orig.c.
|
static |
Definition at line 583 of file mongoose_orig.c.
|
static |
Definition at line 604 of file mongoose_orig.c.
| const char* mg_version | ( | void | ) |
Definition at line 568 of file mongoose_orig.c.
|
static |
Definition at line 622 of file mongoose_orig.c.
| int mg_write | ( | struct mg_connection * | conn, |
| const void * | buf, | ||
| size_t | len | ||
| ) |
Definition at line 1400 of file mongoose_orig.c.
Definition at line 730 of file mongoose_orig.c.
|
static |
Definition at line 2026 of file mongoose_orig.c.
|
static |
Definition at line 2061 of file mongoose_orig.c.
|
static |
Definition at line 1641 of file mongoose_orig.c.
|
static |
Definition at line 2582 of file mongoose_orig.c.
|
static |
Definition at line 2602 of file mongoose_orig.c.
Definition at line 3389 of file mongoose_orig.c.
Definition at line 2499 of file mongoose_orig.c.
|
static |
Definition at line 3829 of file mongoose_orig.c.
|
static |
Definition at line 2805 of file mongoose_orig.c.
|
static |
Definition at line 3265 of file mongoose_orig.c.
|
static |
Definition at line 2301 of file mongoose_orig.c.
|
static |
Definition at line 3243 of file mongoose_orig.c.
|
static |
Definition at line 3903 of file mongoose_orig.c.
|
static |
Definition at line 4030 of file mongoose_orig.c.
Definition at line 1331 of file mongoose_orig.c.
Definition at line 1299 of file mongoose_orig.c.
|
static |
Definition at line 3022 of file mongoose_orig.c.
|
static |
Definition at line 3053 of file mongoose_orig.c.
|
static |
Definition at line 2629 of file mongoose_orig.c.
|
static |
Definition at line 1670 of file mongoose_orig.c.
|
static |
Definition at line 3753 of file mongoose_orig.c.
|
static |
Definition at line 2362 of file mongoose_orig.c.
|
static |
Definition at line 2186 of file mongoose_orig.c.
|
static |
Definition at line 2475 of file mongoose_orig.c.
|
static |
Definition at line 792 of file mongoose_orig.c.
|
static |
Definition at line 3233 of file mongoose_orig.c.
|
static |
Definition at line 3151 of file mongoose_orig.c.
|
static |
Definition at line 3748 of file mongoose_orig.c.
|
static |
Definition at line 1218 of file mongoose_orig.c.
|
static |
Definition at line 3742 of file mongoose_orig.c.
|
static |
Definition at line 1287 of file mongoose_orig.c.
|
static |
Definition at line 3420 of file mongoose_orig.c.
|
static |
Definition at line 3661 of file mongoose_orig.c.
|
static |
Definition at line 3585 of file mongoose_orig.c.
|
static |
Definition at line 781 of file mongoose_orig.c.
|
static |
Definition at line 703 of file mongoose_orig.c.
|
static |
Definition at line 660 of file mongoose_orig.c.
|
static |
Definition at line 1241 of file mongoose_orig.c.
|
static |
Definition at line 554 of file mongoose_orig.c.
|
static |
Definition at line 3623 of file mongoose_orig.c.
|
static |
Definition at line 3611 of file mongoose_orig.c.
|
static |
Definition at line 1562 of file mongoose_orig.c.
|
static |
Definition at line 1222 of file mongoose_orig.c.
|
static |
Definition at line 2650 of file mongoose_orig.c.
|
static |
Definition at line 788 of file mongoose_orig.c.
|
static |
Definition at line 3729 of file mongoose_orig.c.
|
static |
Definition at line 1422 of file mongoose_orig.c.
|
static |
Definition at line 2281 of file mongoose_orig.c.
|
static |
Definition at line 3986 of file mongoose_orig.c.
| struct { ... } builtin_mime_types[] |
|
static |
Definition at line 412 of file mongoose_orig.c.
|
static |
Definition at line 352 of file mongoose_orig.c.
| size_t ext_len |
Definition at line 1692 of file mongoose_orig.c.
| const char* extension |
Definition at line 1691 of file mongoose_orig.c.
|
static |
Definition at line 252 of file mongoose_orig.c.
| const char* mime_type |
Definition at line 1693 of file mongoose_orig.c.
| size_t mime_type_len |
Definition at line 1694 of file mongoose_orig.c.
|
static |
Definition at line 362 of file mongoose_orig.c.
|
static |
Definition at line 3609 of file mongoose_orig.c.
|
static |
Definition at line 330 of file mongoose_orig.c.
1.8.5