25#ifndef ROUTER_HTTP_PASSWD_INCLUDED
26#define ROUTER_HTTP_PASSWD_INCLUDED
73 const std::vector<std::string> &args,
74 std::ostream &os = std::cout, std::ostream &es = std::cerr);
91 std::string
get_help(
const size_t screen_width = 80)
const;
Defining the commandline argument handler class CmdArgHandler.
Handles command line arguments.
Definition: arg_handler.h:140
exception thrown by the frontend.
Definition: passwd.h:41
FrontendError(const std::string &what)
Definition: passwd.h:43
passwd file management frontend.
Definition: passwd.h:60
Cmd
Definition: passwd.h:63
std::ostream & cerr_
Definition: passwd.h:107
int run()
run frontend according to configuration.
Definition: passwd.cc:146
std::string get_help(const size_t screen_width=80) const
get help text.
Definition: passwd.cc:86
void prepare_command_options()
Definition: passwd.cc:357
PasswdFrontend(const std::string &exe_name, const std::vector< std::string > &args, std::ostream &os=std::cout, std::ostream &es=std::cerr)
Definition: passwd.cc:67
CmdArgHandler arg_handler_
Definition: passwd.h:105
Config config_
Definition: passwd.h:109
static std::string get_version() noexcept
get version text.
Definition: passwd.cc:74
std::ostream & cout_
Definition: passwd.h:106
std::string program_name_
Definition: passwd.h:104
Kdf
Definition: passwd.h:62
std::string read_password()
Definition: passwd.cc:142
void init_from_arguments(const std::vector< std::string > &arguments)
Definition: passwd.cc:56
static constexpr unsigned long kDefaultRounds
number of rounds if no rounds was specified in from_mcf().
Definition: kdf_sha_crypt.h:119
frontend error that involved the command-line options.
Definition: passwd.h:52
UsageError(const std::string &what)
Definition: passwd.h:54
Definition: varlen_sort.h:174
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2873
std::string filename
Definition: passwd.h:66
unsigned long cost
Definition: passwd.h:69
Kdf kdf
Definition: passwd.h:68
std::string username
Definition: passwd.h:67
Cmd cmd
Definition: passwd.h:65