FTEQW
Documentation of the FTE engine source tree.
valid.c File Reference

Typedefs

typedef struct ruleset_s ruleset_t
 
typedef struct signed_buffer_s signed_buffer_t
 
typedef signed_buffer_t *(* Security_Verify_Response_t) (int playernum, unsigned char *, char *userinfo, char *serverinfo)
 
typedef int(* Security_Init_t) (char *)
 
typedef signed_buffer_t *(* Security_Generate_Crc_t) (int playernum, char *userinfo, char *serverinfo)
 
typedef signed_buffer_t *(* Security_IsModelModified_t) (char *, int, qbyte *, int)
 
typedef void(* Security_Supported_Binaries_t) (void *)
 
typedef void(* Security_Shutdown_t) (void)
 

Enumerations

enum  { FMOD_UNCHECKED , FMOD_MODIFIED , FMOD_UNMODIFIED }
 

Functions

void Validation_CheckIfResponse (char *text)
 
void InitValidation (void)
 
qboolean Ruleset_FileLoaded (const char *filename, const qbyte *filedata, size_t filesize)
 
void Validation_FlushFileList (void)
 
void Ruleset_Shutdown (void)
 
void Ruleset_Scan (void)
 
void Validation_DelatchRulesets (void)
 
const char * Ruleset_GetRulesetName (void)
 
void Ruleset_Check (char *keyval, char *out, size_t outsize)
 
void Validation_Apply_Ruleset (void)
 
void Validation_Auto_Response (int playernum, char *s)
 

Variables

qboolean care_f_modified
 
qboolean f_modified_particles
 
cvar_t allow_f_version = CVAR("allow_f_version", "1")
 
cvar_t allow_f_server = CVAR("allow_f_server", "1")
 
cvar_t allow_f_skins = CVAR("allow_f_skins", "1")
 
cvar_t allow_f_ruleset = CVAR("allow_f_ruleset", "1")
 
cvar_t allow_f_scripts = CVAR("allow_f_scripts", "1")
 
cvar_t allow_f_modified = CVAR("allow_f_modified", "1")
 
cvar_t allow_f_fakeshaft = CVAR("allow_f_fakeshaft", "1")
 
cvar_t auth_validateclients = CVAR("auth_validateclients", "1")
 
cvar_t allow_f_system = CVAR("allow_f_system", "0")
 
cvar_t allow_f_cmdline = CVAR("allow_f_cmdline", "0")
 
cvar_t ruleset = CVARCD("ruleset", "none", rulesetcallback, "Known rulesets are:\nnone: no explicit rules, all 'minor cheats' are allowed.\nstrict: equivelent to the smackdown ruleset. Note that this will block certain graphical enhancements too.")
 

Typedef Documentation

◆ ruleset_t

typedef struct ruleset_s ruleset_t

◆ Security_Generate_Crc_t

typedef signed_buffer_t *(* Security_Generate_Crc_t) (int playernum, char *userinfo, char *serverinfo)

◆ Security_Init_t

typedef int(* Security_Init_t) (char *)

◆ Security_IsModelModified_t

typedef signed_buffer_t *(* Security_IsModelModified_t) (char *, int, qbyte *, int)

◆ Security_Shutdown_t

typedef void(* Security_Shutdown_t) (void)

◆ Security_Supported_Binaries_t

typedef void(* Security_Supported_Binaries_t) (void *)

◆ Security_Verify_Response_t

typedef signed_buffer_t *(* Security_Verify_Response_t) (int playernum, unsigned char *, char *userinfo, char *serverinfo)

◆ signed_buffer_t

typedef struct signed_buffer_s signed_buffer_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FMOD_UNCHECKED 
FMOD_MODIFIED 
FMOD_UNMODIFIED 

Function Documentation

◆ InitValidation()

void InitValidation ( void  )

◆ Ruleset_Check()

void Ruleset_Check ( char *  keyval,
char *  out,
size_t  outsize 
)

◆ Ruleset_FileLoaded()

qboolean Ruleset_FileLoaded ( const char *  filename,
const qbyte filedata,
size_t  filesize 
)

◆ Ruleset_GetRulesetName()

const char * Ruleset_GetRulesetName ( void  )

◆ Ruleset_Scan()

void Ruleset_Scan ( void  )

◆ Ruleset_Shutdown()

void Ruleset_Shutdown ( void  )

◆ Validation_Apply_Ruleset()

void Validation_Apply_Ruleset ( void  )

◆ Validation_Auto_Response()

void Validation_Auto_Response ( int  playernum,
char *  s 
)

◆ Validation_CheckIfResponse()

void Validation_CheckIfResponse ( char *  text)

◆ Validation_DelatchRulesets()

void Validation_DelatchRulesets ( void  )

◆ Validation_FlushFileList()

void Validation_FlushFileList ( void  )

Variable Documentation

◆ allow_f_cmdline

cvar_t allow_f_cmdline = CVAR("allow_f_cmdline", "0")

◆ allow_f_fakeshaft

cvar_t allow_f_fakeshaft = CVAR("allow_f_fakeshaft", "1")

◆ allow_f_modified

cvar_t allow_f_modified = CVAR("allow_f_modified", "1")

◆ allow_f_ruleset

cvar_t allow_f_ruleset = CVAR("allow_f_ruleset", "1")

◆ allow_f_scripts

cvar_t allow_f_scripts = CVAR("allow_f_scripts", "1")

◆ allow_f_server

cvar_t allow_f_server = CVAR("allow_f_server", "1")

◆ allow_f_skins

cvar_t allow_f_skins = CVAR("allow_f_skins", "1")

◆ allow_f_system

cvar_t allow_f_system = CVAR("allow_f_system", "0")

◆ allow_f_version

cvar_t allow_f_version = CVAR("allow_f_version", "1")

◆ auth_validateclients

cvar_t auth_validateclients = CVAR("auth_validateclients", "1")

◆ care_f_modified

qboolean care_f_modified

◆ f_modified_particles

qboolean f_modified_particles

◆ flags

unsigned int flags

◆ hash

const char* hash

◆ hashes

unsigned int hashes

◆ name

const char* name

◆ ruleset

cvar_t ruleset = CVARCD("ruleset", "none", rulesetcallback, "Known rulesets are:\nnone: no explicit rules, all 'minor cheats' are allowed.\nstrict: equivelent to the smackdown ruleset. Note that this will block certain graphical enhancements too.")