Problem: strict ZAP protocol adherence is backward incompatible

Solution: add ZMQ_ZAP_ENFORCE_DOMAIN to hide backward incompatible
change and make it disabled by default.
In a future release that breaks API compatibility we can then switch
the default to enabled in order to achieve full RFC compatibility.

Fixes #2762
This commit is contained in:
Luca Boccassi
2017-10-07 18:34:18 +01:00
parent 50bddbaac9
commit b6aee51691
10 changed files with 73 additions and 4 deletions

View File

@@ -242,6 +242,9 @@ namespace zmq
// Device to bind the underlying socket to, eg. VRF or interface
std::string bound_device;
// Enforce a non-empty ZAP domain requirement for PLAIN auth
bool zap_enforce_domain;
};
}