NetSurf
|
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "utils/ring.h"
#include "utils/nsurl.h"
#include "monkey/output.h"
#include "monkey/401login.h"
Go to the source code of this file.
Data Structures | |
struct | monkey401 |
Functions | |
nserror | gui_401login_open (struct nsurl *url, const char *realm, const char *username, const char *password, nserror(*cb)(struct nsurl *url, const char *realm, const char *username, const char *password, void *pw), void *cbpw) |
static struct monkey401 * | monkey_find_login_by_num (uint32_t login_num) |
static void | free_login_context (struct monkey401 *m401_ctx) |
static void | monkey_login_handle_go (int argc, char **argv) |
static void | monkey_login_handle_destroy (int argc, char **argv) |
static void | monkey_login_handle_username (int argc, char **argv) |
static void | monkey_login_handle_password (int argc, char **argv) |
void | monkey_login_handle_command (int argc, char **argv) |
Variables | |
static struct monkey401 * | m401_ring = NULL |
static uint32_t | m401_ctr = 0 |
|
static |
Definition at line 106 of file 401login.c.
References m401_ring, MOUT_LOGIN, moutf(), nsurl_unref(), monkey401::num, monkey401::password, monkey401::realm, RING_REMOVE, monkey401::url, and monkey401::username.
Referenced by monkey_login_handle_destroy(), and monkey_login_handle_go().
nserror gui_401login_open | ( | struct nsurl * | url, |
const char * | realm, | ||
const char * | username, | ||
const char * | password, | ||
nserror(*)(struct nsurl *url, const char *realm, const char *username, const char *password, void *pw) | cb, | ||
void * | cbpw | ||
) |
Definition at line 46 of file 401login.c.
References monkey401::cb, monkey401::cbpw, m401_ctr, m401_ring, MOUT_LOGIN, moutf(), NSERROR_NOMEM, NSERROR_OK, nsurl_access(), nsurl_ref(), monkey401::num, monkey401::password, monkey401::realm, RING_INSERT, monkey401::url, and monkey401::username.
|
static |
Definition at line 92 of file 401login.c.
References m401_ring, RING_ITERATE_END, RING_ITERATE_START, and RING_ITERATE_STOP.
Referenced by monkey_login_handle_destroy(), monkey_login_handle_go(), monkey_login_handle_password(), and monkey_login_handle_username().
void monkey_login_handle_command | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 207 of file 401login.c.
References monkey_login_handle_destroy(), monkey_login_handle_go(), monkey_login_handle_password(), monkey_login_handle_username(), MOUT_ERROR, and moutf().
Referenced by main().
|
static |
Definition at line 142 of file 401login.c.
References free_login_context(), monkey_find_login_by_num(), MOUT_ERROR, and moutf().
Referenced by monkey_login_handle_command().
|
static |
Definition at line 121 of file 401login.c.
References monkey401::cb, monkey401::cbpw, free_login_context(), monkey_find_login_by_num(), MOUT_ERROR, moutf(), monkey401::password, monkey401::realm, monkey401::url, and monkey401::username.
Referenced by monkey_login_handle_command().
|
static |
Definition at line 184 of file 401login.c.
References monkey_find_login_by_num(), MOUT_ERROR, moutf(), and monkey401::password.
Referenced by monkey_login_handle_command().
|
static |
Definition at line 161 of file 401login.c.
References monkey_find_login_by_num(), MOUT_ERROR, moutf(), and monkey401::username.
Referenced by monkey_login_handle_command().
|
static |
Definition at line 42 of file 401login.c.
Referenced by gui_401login_open().
|
static |
Definition at line 41 of file 401login.c.
Referenced by free_login_context(), gui_401login_open(), and monkey_find_login_by_num().