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 scoped_resource<std::FILE*,close_FILE> util::scoped_FILE |
Definition at line 191 of file scoped_resource.hpp.
| std::string util::create_hash | ( | const std::string & | password, | |
| const std::string & | salt, | |||
| int | iteration_count | |||
| ) |
| std::string util::encode_hash | ( | unsigned char * | input | ) |
| int util::get_iteration_count | ( | const std::string & | hash | ) |
| std::string util::get_salt | ( | const std::string & | hash | ) |
| bool util::is_valid_hash | ( | const std::string & | hash | ) |
| unsigned char * util::md5 | ( | const std::string & | input | ) |
| const std::string util::hash_prefix = "$H$" |
| const std::string util::itoa64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" |
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:25:45 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |