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

Freeciv-3.1

Loading...
Searching...
No Matches
auth.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 2005 - M.C. Kaufman
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__AUTH_H
14#define FC__AUTH_H
15
16/* utility */
17#include "shared.h"
18
19struct connection;
20
21bool auth_user(struct connection *pconn, char *username);
22void auth_process_status(struct connection *pconn);
23bool auth_handle_reply(struct connection *pconn, char *password);
24
25const char *auth_get_username(struct connection *pconn);
26const char *auth_get_ipaddr(struct connection *pconn);
27
28#endif /* FC__AUTH_H */
auth_handle_reply
bool auth_handle_reply(struct connection *pconn, char *password)
Definition auth.c:156
auth_get_username
const char * auth_get_username(struct connection *pconn)
Definition auth.c:348
auth_process_status
void auth_process_status(struct connection *pconn)
Definition auth.c:207
auth_get_ipaddr
const char * auth_get_ipaddr(struct connection *pconn)
Definition auth.c:358
auth_user
bool auth_user(struct connection *pconn, char *username)
Definition auth.c:73
shared.h
connection
Definition connection.h:141
connection::username
char username[MAX_LEN_NAME]
Definition connection.h:169
connection::password
char password[MAX_LEN_PASSWORD]
Definition connection.h:223