OpenVPN 3 Core Library
Loading...
Searching...
No Matches
cli.cpp File Reference
#include <stdlib.h>
#include <string>
#include <iostream>
#include <thread>
#include <memory>
#include <mutex>
#include <openvpn/common/platform.hpp>
#include <client/ovpncli.cpp>
#include <openvpn/common/exception.hpp>
#include <openvpn/common/string.hpp>
#include <openvpn/common/signal.hpp>
#include <openvpn/common/file.hpp>
#include <openvpn/common/getopt.hpp>
#include <openvpn/common/getpw.hpp>
#include <openvpn/common/cleanup.hpp>
#include <openvpn/time/timestr.hpp>
#include <openvpn/ssl/peerinfo.hpp>
#include <openvpn/ssl/sslchoose.hpp>
#include <openvpn/common/argv.hpp>
#include <openvpn/common/process.hpp>
Include dependency graph for cli.cpp:

Go to the source code of this file.

Classes

class  ClientBase
 
class  Client
 

Macros

#define OPENVPN_CORE_API_VISIBILITY_HIDDEN
 

Functions

static void worker_thread ()
 
static std::string read_profile (const char *fn, const std::string *profile_content)
 
static void handler (int signum)
 
static void start_thread (Client &client)
 
int openvpn_client (int argc, char *argv[], const std::string *profile_content)
 
int main (int argc, char *argv[])
 

Variables

static Clientthe_client = nullptr
 

Macro Definition Documentation

◆ OPENVPN_CORE_API_VISIBILITY_HIDDEN

#define OPENVPN_CORE_API_VISIBILITY_HIDDEN

Definition at line 44 of file cli.cpp.

Function Documentation

◆ handler()

static void handler ( int  signum)
static

Definition at line 961 of file cli.cpp.

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 1639 of file cli.cpp.

◆ openvpn_client()

int openvpn_client ( int  argc,
char *  argv[],
const std::string *  profile_content 
)

Definition at line 1022 of file cli.cpp.

Here is the caller graph for this function:

◆ read_profile()

static std::string read_profile ( const char *  fn,
const std::string *  profile_content 
)
static

Definition at line 846 of file cli.cpp.

Here is the caller graph for this function:

◆ start_thread()

static void start_thread ( Client client)
static

Definition at line 1001 of file cli.cpp.

Here is the caller graph for this function:

◆ worker_thread()

static void worker_thread ( )
static

Definition at line 822 of file cli.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ the_client

Client* the_client = nullptr
static

Definition at line 820 of file cli.cpp.