#include <curve.hpp>
Definition at line 37 of file curve.hpp.
◆ CurveAuth()
| Mads::CurveAuth::CurveAuth |
( |
zmq::context_t & |
context | ) |
|
|
inline |
Constructs a CurveAuth object for managing CURVE authentication.
- Parameters
-
| context | The zmq::context_t to use for authentication. |
Definition at line 44 of file curve.hpp.
◆ ~CurveAuth()
| Mads::CurveAuth::~CurveAuth |
( |
| ) |
|
|
default |
◆ client_public_key()
| string Mads::CurveAuth::client_public_key |
( |
| ) |
const |
|
inline |
◆ client_secret_key()
| string Mads::CurveAuth::client_secret_key |
( |
| ) |
const |
|
inline |
◆ fetch_public_keys()
| void Mads::CurveAuth::fetch_public_keys |
( |
fs::path const & |
key_dir | ) |
|
|
inline |
Fetches client public keys from the specified directory.
Scans the given directory for files with .pub extension and stores the client key names (without extension) in the _client_keys member variable.
- Parameters
-
| key_dir | The directory to scan for client public keys. |
- Exceptions
-
| runtime_error | if no client public keys are found. |
Definition at line 78 of file curve.hpp.
◆ server_public_key()
| string Mads::CurveAuth::server_public_key |
( |
| ) |
const |
|
inline |
◆ set_client_public_key()
| void Mads::CurveAuth::set_client_public_key |
( |
string const & |
key | ) |
|
|
inline |
◆ set_client_secret_key()
| void Mads::CurveAuth::set_client_secret_key |
( |
string const & |
key | ) |
|
|
inline |
◆ set_key_dir()
| void Mads::CurveAuth::set_key_dir |
( |
fs::path const & |
key_dir | ) |
|
|
inline |
◆ set_server_public_key()
| void Mads::CurveAuth::set_server_public_key |
( |
string const & |
key | ) |
|
|
inline |
◆ setup_auth()
◆ setup_curve_client() [1/2]
| void Mads::CurveAuth::setup_curve_client |
( |
zmq::socket_t & |
socket | ) |
|
|
inline |
◆ setup_curve_client() [2/2]
| void Mads::CurveAuth::setup_curve_client |
( |
zmq::socket_t & |
socket, |
|
|
string const & |
client_name, |
|
|
string const & |
server_name |
|
) |
| |
|
inline |
◆ setup_curve_server()
| void Mads::CurveAuth::setup_curve_server |
( |
zmq::socket_t & |
socket, |
|
|
string const & |
key_name |
|
) |
| |
|
inline |
◆ allowed_ips
| vector<string> Mads::CurveAuth::allowed_ips {} |
The documentation for this class was generated from the following file: