auth.cc File Reference

#include <sys/time.h>
#include "pages.h"
#include "tools.h"
#include "session_manager.h"

Go to the source code of this file.

Defines

#define LOGIN_TIMEOUT   10

Functions

static long get_time ()
static String generate_token ()
static bool check_token (String token, String password, String encPassword)

Detailed Description

Definition in file auth.cc.


Define Documentation

#define LOGIN_TIMEOUT   10

Definition at line 44 of file auth.cc.

Referenced by generate_token().


Function Documentation

static bool check_token ( String  token,
String  password,
String  encPassword 
) [static]

Definition at line 60 of file auth.cc.

References get_time(), hex_string_md5(), and split_string().

Referenced by web::auth::process().

static String generate_token (  )  [static]

Definition at line 53 of file auth.cc.

References generate_random_id(), get_time(), and LOGIN_TIMEOUT.

Referenced by web::auth::process().

static long get_time (  )  [static]

Definition at line 46 of file auth.cc.

References NULL.

Referenced by check_token(), and generate_token().


Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1