Problem: sub/cancel broken with CURVE

Solution: handle downgrading sub/cancel messages in CURVE engine
This commit is contained in:
Luca Boccassi
2020-05-03 17:29:19 +01:00
parent 534580c31d
commit 60ccf54fa6
10 changed files with 78 additions and 29 deletions

View File

@@ -41,10 +41,14 @@
#include "secure_allocator.hpp"
zmq::curve_client_t::curve_client_t (session_base_t *session_,
const options_t &options_) :
const options_t &options_,
const bool downgrade_sub_) :
mechanism_base_t (session_, options_),
curve_mechanism_base_t (
session_, options_, "CurveZMQMESSAGEC", "CurveZMQMESSAGES"),
curve_mechanism_base_t (session_,
options_,
"CurveZMQMESSAGEC",
"CurveZMQMESSAGES",
downgrade_sub_),
_state (send_hello),
_tools (options_.curve_public_key,
options_.curve_secret_key,