Skip to content
API Documentation
BastionGuard™
Rule.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  bsc
namespace  bsc::rule
namespace  bsc::rule::anonymous_namespace{Rule.cpp}

Typedefs

using bsc::rule::json = nlohmann::json

Functions

std::string bsc::rule::anonymous_namespace{Rule.cpp}::trim (std::string s)
std::string bsc::rule::anonymous_namespace{Rule.cpp}::digest_file (const std::string &path, const EVP_MD *(*algo)())
std::string bsc::rule::anonymous_namespace{Rule.cpp}::to_lower (std::string s)
std::string bsc::rule::anonymous_namespace{Rule.cpp}::normalize_operand (std::string op)
std::vector< std::string > bsc::rule::anonymous_namespace{Rule.cpp}::field_values (const bsc::model::Connection &c, const std::string &operand)
bool bsc::rule::anonymous_namespace{Rule.cpp}::parse_ipv4 (const std::string &ip, std::uint32_t &out)
bool bsc::rule::anonymous_namespace{Rule.cpp}::parse_ipv6 (const std::string &ip, in6_addr &out)
bool bsc::rule::anonymous_namespace{Rule.cpp}::ip_in_cidr (const std::string &ip, const std::string &cidr)
std::optional< std::pair< unsigned long long, unsigned long long > > bsc::rule::anonymous_namespace{Rule.cpp}::parse_range (const std::string &data)
std::unordered_set< std::string > bsc::rule::anonymous_namespace{Rule.cpp}::load_simple_list_file (const fs::path &path, bool sensitive)
Operator bsc::rule::anonymous_namespace{Rule.cpp}::parse_operator (const json &j)
json bsc::rule::anonymous_namespace{Rule.cpp}::to_json_op (const Operator &op)

Variables

std::map< std::string, std::vector< std::string > > bsc::rule::anonymous_namespace{Rule.cpp}::g_aliases