The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
Namespaces | Functions
auth.hpp File Reference

campaignd authentication API. More...

#include <string>
#include <utility>
Include dependency graph for auth.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  campaignd
 
namespace  campaignd::auth
 

Functions

bool campaignd::auth::verify_passphrase (const std::string &passphrase, const std::string &salt, const std::string &hash)
 Verifies the specified plain text passphrase against a salted hash.
 
std::pair< std::string, std::string > campaignd::auth::generate_hash (const std::string &passphrase)
 Generates a salted hash from the specified passphrase.
 

Detailed Description

campaignd authentication API.

Definition in file auth.hpp.