Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NetAuth Class Reference

#include <NetAuth.h>

List of all members.

Public Types

enum  AUTH_STATE { NET_AUTH_INITIAL = 0, NET_AUTH_FAILED = 1, NET_AUTH_OK = 2 }
enum  AUTH_LEVEL { NET_AUTH_MINIMAL = 0, NET_AUTH_STANDARD = 1, NET_AUTH_SECURE = 2 }

Static Public Member Functions

static int AuthLevel ()
static void SetAuthLevel (int n)
static Text CreateAuthRequest (NetUser *u)
static Text CreateAuthResponse (int level, const char *salt)
static bool AuthUser (NetUser *u, Text response)

Detailed Description

Definition at line 26 of file NetAuth.h.


Member Enumeration Documentation

Enumerator:
NET_AUTH_MINIMAL 
NET_AUTH_STANDARD 
NET_AUTH_SECURE 

Definition at line 35 of file NetAuth.h.

Enumerator:
NET_AUTH_INITIAL 
NET_AUTH_FAILED 
NET_AUTH_OK 

Definition at line 29 of file NetAuth.h.


Member Function Documentation

int NetAuth::AuthLevel ( )
static

Definition at line 30 of file NetAuth.cpp.

bool NetAuth::AuthUser ( NetUser u,
Text  response 
)
static

Definition at line 192 of file NetAuth.cpp.

Text NetAuth::CreateAuthRequest ( NetUser u)
static

Definition at line 46 of file NetAuth.cpp.

Text NetAuth::CreateAuthResponse ( int  level,
const char *  salt 
)
static

Definition at line 131 of file NetAuth.cpp.

void NetAuth::SetAuthLevel ( int  n)
static

Definition at line 37 of file NetAuth.cpp.


The documentation for this class was generated from the following files: