26#ifndef ROUTER_HTTP_PASSWD_INCLUDED
27#define ROUTER_HTTP_PASSWD_INCLUDED
74 const std::vector<std::string> &args,
75 std::ostream &os = std::cout, std::ostream &es = std::cerr);
92 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:141
exception thrown by the frontend.
Definition: passwd.h:42
FrontendError(const std::string &what)
Definition: passwd.h:44
passwd file management frontend.
Definition: passwd.h:61
Cmd
Definition: passwd.h:64
std::ostream & cerr_
Definition: passwd.h:108
int run()
run frontend according to configuration.
Definition: passwd.cc:147
std::string get_help(const size_t screen_width=80) const
get help text.
Definition: passwd.cc:87
void prepare_command_options()
Definition: passwd.cc:358
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:68
CmdArgHandler arg_handler_
Definition: passwd.h:106
Config config_
Definition: passwd.h:110
static std::string get_version() noexcept
get version text.
Definition: passwd.cc:75
std::ostream & cout_
Definition: passwd.h:107
std::string program_name_
Definition: passwd.h:105
Kdf
Definition: passwd.h:63
std::string read_password()
Definition: passwd.cc:143
void init_from_arguments(const std::vector< std::string > &arguments)
Definition: passwd.cc:57
static constexpr unsigned long kDefaultRounds
number of rounds if no rounds was specified in from_mcf().
Definition: kdf_sha_crypt.h:120
frontend error that involved the command-line options.
Definition: passwd.h:53
UsageError(const std::string &what)
Definition: passwd.h:55
Definition: gcs_xcom_synode.h:64
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2876
std::string filename
Definition: passwd.h:67
unsigned long cost
Definition: passwd.h:70
Kdf kdf
Definition: passwd.h:69
std::string username
Definition: passwd.h:68
Cmd cmd
Definition: passwd.h:66