mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 05:29:43 +01:00
Problem: WSS-specific members and options are compiled without ZMQ_HAVE_WSS
Solution: properly guard members and options
This commit is contained in:
committed by
Simon Giesecke
parent
9e548bd591
commit
30e2398e67
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user