Freeciv-3.2
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);
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 */
bool auth_handle_reply(struct connection *pconn, char *password)
Definition auth.c:156
const char * auth_get_username(struct connection *pconn)
Definition auth.c:348
void auth_process_status(struct connection *pconn)
Definition auth.c:207
const char * auth_get_ipaddr(struct connection *pconn)
Definition auth.c:358
bool auth_user(struct connection *pconn, char *username)
Definition auth.c:73
char * incite_cost
Definition comments.c:75
char username[MAX_LEN_NAME]
Definition connection.h:164
char password[MAX_LEN_PASSWORD]
Definition connection.h:218