Problem: WSS-specific members and options are compiled without ZMQ_HAVE_WSS

Solution: properly guard members and options
This commit is contained in:
Simon Giesecke
2019-12-11 12:13:34 +01:00
committed by Simon Giesecke
parent 9e548bd591
commit 30e2398e67
3 changed files with 12 additions and 2 deletions

View File

@@ -786,6 +786,7 @@ int zmq::options_t::setsockopt (int option_,
}
break;
#ifdef ZMQ_HAVE_WSS
case ZMQ_WSS_KEY_PEM:
// TODO: check if valid certificate
wss_key_pem = std::string ((char *) optval_, optvallen_);
@@ -804,7 +805,7 @@ int zmq::options_t::setsockopt (int option_,
case ZMQ_WSS_TRUST_SYSTEM:
return do_setsockopt_int_as_bool_strict (optval_, optvallen_,
&wss_trust_system);
#endif
#endif
default: