Freeciv-3.1: /fast/freeciv/nightly/S3_1/server/auth.h File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
auth.h File Reference
`#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)

## Function Documentation

## ◆ auth_get_ipaddr()

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().

## ◆ auth_get_username()

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().

## ◆ auth_handle_reply()

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().

## ◆ auth_process_status()

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().

## ◆ 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 73 of file auth.c.

Referenced by handle_login_request().