[zeromq-dev] curve : switch off security

Laurent Alebarde l.alebarde at free.fr
Sat Sep 21 11:02:25 CEST 2013

Hi Pieter,

After some thinking, I think the following would be nice to switch off 
security :

int as_server = 1;
rc = zmq_setsockopt (server, ZMQ_PARANO_SERVER, &as_server, sizeof (int));
// perform some CURVE exchanges
// remove security
int as_server = 0;
rc = zmq_setsockopt (server, ZMQ_PARANO_SERVER, &as_server, sizeof (int));
// What about the client  ? Can the communication continue on this 
socket with no action on the client side ?
// as_server = value; in options.cpp makes me conclude communications 
are stopped since it becomes a client ?

rc = zmq_setsockopt (server, ZMQ_PARANO_SERVER);
// perform some CURVE exchanges
// remove security, or why not,  switch to another mechanism
rc = zmq_setsockopt (server, ZMQ_NULL_SERVER);

What do you think about it ?



Le 17/09/2013 14:40, Pieter Hintjens a écrit :
> I agree about switching off security, it should be explicit... 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130921/e2249bd3/attachment.htm>

More information about the zeromq-dev mailing list