Classes | Typedefs | Functions | Variables

util Namespace Reference

Classes

class  array
class  scoped_resource
 A class template, scoped_resource, designed to implement the Resource Acquisition Is Initialization (RAII) approach to resource management. More...
struct  delete_item
 A helper policy for scoped_ptr. More...
struct  delete_array
 A helper policy for scoped_array. More...
struct  scoped_ptr
 A class which implements an approximation of template<typename T> typedef scoped_resource<T*,delete_item> scoped_ptr<T>;. More...
struct  scoped_array
 This class has identical behaviour to scoped_ptr, except it manages heap-allocated arrays instead of heap-allocated single objects. More...
struct  close_FILE
 This class specializes the scoped_resource to implement scoped FILEs. More...
class  unique_ptr

Typedefs

typedef scoped_resource
< std::FILE *, close_FILE
scoped_FILE

Functions

unsigned char * md5 (const std::string &input)
int get_iteration_count (const std::string &hash)
std::string get_salt (const std::string &hash)
bool is_valid_hash (const std::string &hash)
std::string encode_hash (unsigned char *input)
std::string create_hash (const std::string &password, const std::string &salt, int iteration_count)

Variables

const std::string itoa64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
const std::string hash_prefix = "$H$"

Typedef Documentation

Definition at line 191 of file scoped_resource.hpp.


Function Documentation

std::string util::create_hash ( const std::string &  password,
const std::string &  salt,
int  iteration_count 
)

Referenced by open_connection().

Here is the caller graph for this function:

std::string util::encode_hash ( unsigned char *  input  ) 
int util::get_iteration_count ( const std::string &  hash  ) 

Referenced by open_connection().

Here is the caller graph for this function:

std::string util::get_salt ( const std::string &  hash  ) 

Referenced by open_connection().

Here is the caller graph for this function:

bool util::is_valid_hash ( const std::string &  hash  ) 
unsigned char * util::md5 ( const std::string &  input  ) 

Variable Documentation

const std::string util::hash_prefix = "$H$"

Definition at line 24 of file hash.cpp.

const std::string util::itoa64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"

Definition at line 23 of file hash.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:25:45 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs