OpenVPN 3 Core Library
|
#include <sess_id.hpp>
Public Member Functions | |
SessionIDType () | |
SessionIDType (StrongRandomAPI &rng) | |
SessionIDType (const std::string &b64) | |
SessionIDType (const std::uint8_t *bytes) | |
template<size_t S> | |
SessionIDType (const SessionIDType< S > &other) | |
template<typename CRYPT > | |
SessionIDType (const SessionIDType &other, CRYPT &crypt) | |
bool | defined () const |
std::uint64_t | shortform () const |
template<typename HASH > | |
void | hash (HASH &h) const |
std::string | to_string () const |
bool | operator== (const SessionIDType &other) const |
bool | operator!= (const SessionIDType &other) const |
bool | operator< (const SessionIDType &other) const |
template<size_t S> | |
bool | eq_weak (const SessionIDType< S > &other) const |
const std::uint8_t * | c_data () const |
template<typename UNORDERED_MAP > | |
const SessionIDType * | find_weak (const UNORDERED_MAP &m, const bool conflict) const |
Static Public Member Functions | |
static bool | is (const std::string &str) |
static constexpr size_t | size () |
Private Attributes | ||
union { | ||
std::uint64_t dataz [SIZE/sizeof(std::uint64_t)] | ||
std::uint8_t data [SIZE] | ||
} | u | |
Friends | |
template<size_t S> | |
class | SessionIDType |
Definition at line 32 of file sess_id.hpp.
|
inline |
Definition at line 39 of file sess_id.hpp.
|
inlineexplicit |
Definition at line 48 of file sess_id.hpp.
|
inlineexplicit |
Definition at line 54 of file sess_id.hpp.
|
inlineexplicit |
Definition at line 70 of file sess_id.hpp.
|
inlineexplicit |
Definition at line 79 of file sess_id.hpp.
|
inlineexplicit |
Definition at line 88 of file sess_id.hpp.
|
inline |
Definition at line 153 of file sess_id.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 109 of file sess_id.hpp.
|
inlinestatic |
Definition at line 143 of file sess_id.hpp.
|
inline |
Definition at line 125 of file sess_id.hpp.
|
inline |
Definition at line 130 of file sess_id.hpp.
|
inline |
|
inline |
|
inlinestaticconstexpr |
Definition at line 148 of file sess_id.hpp.
|
inline |
Definition at line 36 of file sess_id.hpp.
std::uint8_t openvpn::SessionIDType< SIZE >::data[SIZE] |
Definition at line 178 of file sess_id.hpp.
std::uint64_t openvpn::SessionIDType< SIZE >::dataz[SIZE/sizeof(std::uint64_t)] |
Definition at line 177 of file sess_id.hpp.
union { ... } openvpn::SessionIDType< SIZE >::u |