OpenVPN 3 Core Library
|
#include <string>
#include <vector>
#include <utility>
#include <openvpn/common/exception.hpp>
#include <openvpn/common/options.hpp>
#include <openvpn/common/splitlines.hpp>
#include <openvpn/common/string.hpp>
#include <openvpn/common/file.hpp>
Go to the source code of this file.
Namespaces | |
namespace | openvpn |
namespace | openvpn::UserPass |
Enumerations | |
enum | openvpn::UserPass::Flags { openvpn::UserPass::OPT_REQUIRED = (1 << 0) , openvpn::UserPass::OPT_OPTIONAL = (1 << 1) , openvpn::UserPass::USERNAME_REQUIRED = (1 << 2) , openvpn::UserPass::PASSWORD_REQUIRED = (1 << 3) , openvpn::UserPass::TRY_FILE = (1 << 4) } |
Functions | |
openvpn::UserPass::OPENVPN_EXCEPTION (creds_error) | |
bool | openvpn::UserPass::parse (const OptionList &options, const std::string &opt_name, const unsigned int flags, std::vector< std::string > *user_pass) |
interpret user-pass option | |
void | openvpn::UserPass::parse (const OptionList &options, const std::string &opt_name, const unsigned int flags, std::string &user, std::string &pass) |
interpret user-pass option | |
void | openvpn::UserPass::parse_file (const std::string &path, const unsigned int flags, std::string &user, std::string &pass) |
read username/password from file | |