18#ifndef OPENVPN_CLIENT_CLICREDS_H
19#define OPENVPN_CLIENT_CLICREDS_H
84 else if (!user.empty())
197 ret =
"DynamicChallenge";
207 ret +=
"UsernameSessionId";
211 ret +=
"UsernameEmpty";
224 ret +=
"PasswordEmpty";
229 ret =
"StaticChallenge";
std::string construct_dynamic_password(const std::string &response) const
const std::string & get_username() const
static std::string construct_static_password(const std::string &password, const std::string &response)
void set_http_proxy_username(const std::string &username)
void set_dynamic_challenge_cookie(const std::string &cookie, const std::string &username)
std::string session_id_username
bool password_defined() const
std::string get_password() const
bool username_defined() const
bool password_needed() const
std::string http_proxy_pass
void set_username(const std::string &username_arg)
std::string auth_info() const
bool need_user_interaction_
void set_need_user_interaction()
bool need_user_interaction() const
std::string get_http_proxy_username() const
void set_session_id(const std::string &user, const std::string &sess_id)
bool http_proxy_password_defined() const
std::string get_http_proxy_password() const
void set_http_proxy_password(const std::string &password)
std::string get_username() const
std::string http_proxy_user
void set_response(const std::string &response_arg)
bool session_id_defined() const
ChallengeResponse::Ptr dynamic_challenge
void set_password(const std::string &password_arg)
bool http_proxy_username_defined() const
void save_username_for_session_id()
void reset() noexcept
Points this RCPtr<T> to nullptr safely.
Reference count base class for objects tracked by RCPtr. Disallows copying and assignment.
#define OPENVPN_LOG(args)