Skip to content
API Documentation
BastionGuard™
proxy_config.hpp File Reference

Go to the source code of this file.

Classes

struct  BrowserProxy::Settings
struct  ProxyConfig::Settings

Namespaces

namespace  BrowserProxy
namespace  ProxyConfig

Enumerations

enum class  ProxyConfig::DE {
  ProxyConfig::GNOME , ProxyConfig::KDE , ProxyConfig::XFCE , ProxyConfig::MATE ,
  ProxyConfig::CINNAMON , ProxyConfig::LXQT , ProxyConfig::OTHER
}

Functions

static std::string BrowserProxy::home_dir ()
static void BrowserProxy::write_file (const fs::path &p, const std::string &content)
static void BrowserProxy::remove_lines_containing (const fs::path &p, const std::string &needle)
static fs::path BrowserProxy::firefox_active_profile (const fs::path &profiles_dir)
static void BrowserProxy::firefox_set_profile (const fs::path &profile, const Settings &s)
static void BrowserProxy::firefox_clear_profile (const fs::path &profile)
static void BrowserProxy::configure_firefox_family (const Settings &s, bool clear)
static std::string BrowserProxy::make_chromium_policy (const Settings &s)
static void BrowserProxy::chromium_set_policy (const fs::path &dir, const Settings &s)
static void BrowserProxy::chromium_clear_policy (const fs::path &dir)
static void BrowserProxy::configure_chromium_family (const Settings &s, bool clear)
static bool BrowserProxy::nss_contains_ca (const std::string &database)
static void BrowserProxy::install_ca_firefox_profile (const fs::path &profile)
static void BrowserProxy::install_ca_firefox_family ()
static void BrowserProxy::install_ca_nssdb ()
static void BrowserProxy::install_ca_all_browsers ()
static void BrowserProxy::apply (const Settings &s)
static void BrowserProxy::restore ()
static bool ProxyConfig::run (const std::vector< std::string > &args, bool silent=false)
static DE ProxyConfig::detect ()
static void ProxyConfig::gnome_set (const Settings &s)
static void ProxyConfig::gnome_clear ()
static void ProxyConfig::kde_refresh ()
static void ProxyConfig::kde_set (const Settings &s)
static void ProxyConfig::kde_clear ()
static void ProxyConfig::xfce_set (const Settings &s)
static void ProxyConfig::xfce_clear ()
static void ProxyConfig::mate_set (const Settings &s)
static void ProxyConfig::mate_clear ()
static void ProxyConfig::lxqt_set (const Settings &s)
static void ProxyConfig::env_set (const Settings &s)
static void ProxyConfig::env_clear ()
static void ProxyConfig::apply (const Settings &s)
static void ProxyConfig::restore ()

Variables

static constexpr const char * BrowserProxy::LAN_BYPASS_CIDR
static constexpr const char * BrowserProxy::LAN_BYPASS_NOCIDR
static constexpr const char * BrowserProxy::LAN_BYPASS_GVARIANT
static constexpr const char * BrowserProxy::FF_MARKER = "// BastionGuard-proxy"
static constexpr const char * BrowserProxy::BG_CA_CERT = "/etc/BastionGuard/certs/BastionGuard-ca.crt.pem"
static constexpr const char * BrowserProxy::BG_CA_NICK = "BastionGuard-CA"