Freeciv21
Develop your civilization from humble roots to a global empire
auth.h File Reference
#include "shared.h"
+ Include dependency graph for auth.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool auth_user (struct connection *pconn, char *username)
 Handle authentication of a user; called by handle_login_request() if authentication is enabled. More...
 
void auth_process_status (struct connection *pconn)
 Checks on where in the authentication process we are. More...
 
bool auth_handle_reply (struct connection *pconn, char *password)
 Receives a password from a client and verifies it. More...
 
const char * auth_get_username (struct connection *pconn)
 Get username for connection. More...
 
const char * auth_get_ipaddr (struct connection *pconn)
 Get connection ip address. More...
 

Function Documentation

◆ auth_get_ipaddr()

const char* auth_get_ipaddr ( struct connection pconn)

Get connection ip address.

Definition at line 328 of file auth.cpp.

Referenced by script_fcdb_register_functions().

◆ auth_get_username()

const char* auth_get_username ( struct connection pconn)

Get username for connection.

Definition at line 317 of file auth.cpp.

Referenced by script_fcdb_register_functions().

◆ auth_handle_reply()

bool auth_handle_reply ( struct connection pconn,
char *  password 
)

Receives a password from a client and verifies it.

Definition at line 147 of file auth.cpp.

Referenced by server_packet_input().

◆ auth_process_status()

void auth_process_status ( struct connection pconn)

Checks on where in the authentication process we are.

Definition at line 197 of file auth.cpp.

Referenced by freeciv::server::pulse().

◆ auth_user()

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 56 of file auth.cpp.

Referenced by handle_login_request().