Freeciv-3.2
|
#include "shared.h"
Go to the source code of this file.
Functions | |
bool | auth_user (struct connection *pconn, char *username) |
void | auth_process_status (struct connection *pconn) |
bool | auth_handle_reply (struct connection *pconn, char *password) |
const char * | auth_get_username (struct connection *pconn) |
const char * | auth_get_ipaddr (struct connection *pconn) |
const char * auth_get_ipaddr | ( | struct connection * | pconn | ) |
Get connection ip address
Definition at line 358 of file auth.c.
Referenced by api_auth_get_ipaddr().
const char * auth_get_username | ( | struct connection * | pconn | ) |
Get username for connection
Definition at line 348 of file auth.c.
Referenced by api_auth_get_username().
bool auth_handle_reply | ( | struct connection * | pconn, |
char * | password | ||
) |
Receives a password from a client and verifies it.
Definition at line 156 of file auth.c.
Referenced by server_packet_input().
void auth_process_status | ( | struct connection * | pconn | ) |
Checks on where in the authentication process we are.
Definition at line 207 of file auth.c.
Referenced by server_sniff_all_input().
bool auth_user | ( | struct connection * | pconn, |
char * | username | ||
) |
Handle authentication of a user; called by handle_login_request() if authentication is enabled.
If the connection is rejected right away, return FALSE, otherwise this function will return TRUE.
Definition at line 73 of file auth.c.
Referenced by handle_login_request().