12#ifndef OPENVPN_AUTH_AUTHCREDS
13#define OPENVPN_AUTH_AUTHCREDS
35 const std::string &peer_info_str)
76 std::ostringstream
os;
77 os <<
"*** AuthCreds ***\n";
81 os <<
"pass: (empty)\n";
85 os <<
"pass: (non-empty)\n";
std::string to_string() const
AuthCreds(std::string username_arg, SafeString password_arg, OptionList peer_info_arg)
bool is_valid(const bool strict) const
bool is_valid_user_pass(const bool strict) const
AuthCreds(std::string &&username_arg, SafeString &&password_arg, const std::string &peer_info_str)
void parse_from_peer_info(const std::string &str, Limits *lim)
std::string render(const unsigned int flags) const
Reference count base class for objects tracked by RCPtr. Disallows copying and assignment.
A string-like type that clears the buffer contents on delete.
static bool is_valid(const Type type, const STRING &cred, const bool strict)