auth.h File Reference

Authentication handling thread. More...

Go to the source code of this file.

Data Structures

struct  _t_authresponse
 This structure contains all the information returned by the authentication server. More...

Typedefs

typedef struct _t_authresponse t_authresponse

Enumerations

enum  t_authcode {
  AUTH_ERROR = -1, AUTH_DENIED = 0, AUTH_ALLOWED = 1, AUTH_VALIDATION = 5,
  AUTH_VALIDATION_FAILED = 6, AUTH_LOCKED = 254
}
 Authentication codes returned by auth server. More...

Functions

void authenticate_client (request *)
 Authenticate a single client against the central server.
void thread_client_timeout_check (const void *arg)
 Periodically check if connections expired.


Detailed Description

Authentication handling thread.

Author:
Copyright (C) 2004 Alexandre Carmel-Veilleux <acv@miniguru.ca>

Definition in file auth.h.


Enumeration Type Documentation

enum t_authcode

Authentication codes returned by auth server.

Authentication result codes returned by auth_server_request() corresponding to result code from the central server itself.

Enumerator:
AUTH_ERROR  An error occured during the validation process
AUTH_DENIED  Client was denied by the auth server
AUTH_ALLOWED  Client was granted access by the auth server
AUTH_VALIDATION  A misnomer. Client is in 15 min probation to validate his new account
AUTH_VALIDATION_FAILED  Client had X minutes to validate account by email and didn't = too late
AUTH_LOCKED  Account has been locked

Definition at line 38 of file auth.h.


Function Documentation

void authenticate_client ( request *  r  ) 

void thread_client_timeout_check ( const void *  arg  ) 

Periodically check if connections expired.

Launches a thread that periodically checks if any of the connections has timed out

Parameters:
arg Must contain a pointer to a string containing the IP adress of the client to check to check
Todo:
Also pass MAC adress?
Todo:
This thread loops infinitely, need a watchdog to verify that it is still running?

Definition at line 63 of file auth.c.

References s_config::checkinterval, config_get_config(), and debug.


Generated on Fri Sep 25 15:28:43 2009 for WifiDog by  doxygen 1.5.5