mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Merge commit '82fea30fcce1d169de7ec42be84d079e0899519c' into feature/update-dependenies
This commit is contained in:
@@ -4,18 +4,18 @@
|
||||
// packet encryption, packet authentication, and
|
||||
// packet compression.
|
||||
//
|
||||
// Copyright (C) 2012-2017 OpenVPN Technologies, Inc.
|
||||
// Copyright (C) 2012-2017 OpenVPN Inc.
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License Version 3
|
||||
// it under the terms of the GNU Affero General Public License Version 3
|
||||
// as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program in the COPYING file.
|
||||
// If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <openvpn/tun/builder/base.hpp>
|
||||
#include <openvpn/tun/extern/fw.hpp>
|
||||
#include <openvpn/pki/epkibase.hpp>
|
||||
#include <openvpn/transport/client/extern/fw.hpp>
|
||||
|
||||
namespace openvpn {
|
||||
class OptionList;
|
||||
@@ -172,6 +173,10 @@ namespace openvpn {
|
||||
// option of profile
|
||||
std::string serverOverride;
|
||||
|
||||
// Use a different port than that specified in "remote"
|
||||
// option of profile
|
||||
std::string portOverride;
|
||||
|
||||
// Force a given transport protocol
|
||||
// Should be tcp, udp, or adaptive.
|
||||
std::string protoOverride;
|
||||
@@ -192,6 +197,9 @@ namespace openvpn {
|
||||
// DNS servers, use the standard Google DNS servers.
|
||||
bool googleDnsFallback = false;
|
||||
|
||||
// if true, do synchronous DNS lookup.
|
||||
bool synchronousDnsLookup = false;
|
||||
|
||||
// Enable autologin sessions
|
||||
bool autologinSessions = true;
|
||||
|
||||
@@ -321,7 +329,8 @@ namespace openvpn {
|
||||
struct LogInfo
|
||||
{
|
||||
LogInfo() {}
|
||||
LogInfo(std::string str);
|
||||
LogInfo(std::string str)
|
||||
: text(std::move(str)) {}
|
||||
std::string text; // log output (usually but not always one line)
|
||||
};
|
||||
|
||||
@@ -412,6 +421,7 @@ namespace openvpn {
|
||||
class OpenVPNClient : public TunBuilderBase, // expose tun builder virtual methods
|
||||
public LogReceiver, // log message notification
|
||||
public ExternalTun::Factory, // low-level tun override
|
||||
public ExternalTransport::Factory,// low-level transport override
|
||||
private ExternalPKIBase
|
||||
{
|
||||
public:
|
||||
@@ -567,10 +577,13 @@ namespace openvpn {
|
||||
Private::ClientState* state;
|
||||
|
||||
private:
|
||||
void connect_setup(Status&, bool&);
|
||||
void do_connect_async();
|
||||
static Status status_from_exception(const std::exception&);
|
||||
static void parse_config(const Config&, EvalConfig&, OptionList&);
|
||||
void parse_extras(const Config&, EvalConfig&);
|
||||
void external_pki_error(const ExternalPKIRequestBase&, const size_t err_type);
|
||||
void process_epki_cert_chain(const ExternalPKICertRequest& req);
|
||||
void external_pki_error(const ExternalPKIRequestBase&, const size_t);
|
||||
void process_epki_cert_chain(const ExternalPKICertRequest&);
|
||||
void check_app_expired();
|
||||
static MergeConfig build_merge_config(const ProfileMerge&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user