For both clients and servers one must set public and secret keys; for clients one additionally sets the server's public key, and for servers one tells libzmq it is a server.
I'll fix the man page, thanks for catching this. -Pieter On Wed, Oct 23, 2013 at 11:22 AM, Peter Kleiweg <[email protected]> wrote: > > http://api.zeromq.org/4-0:zmq-setsockopt#toc38 > > The documentation for "ZMQ_CURVE_SERVER: Set CURVE server > role" says: > > When you set this you must also set the ZMQ_CURVE_PUBLICKEY option. > > This is wrong. It should be: > > When you set this you must also set the ZMQ_CURVE_SECRETKEY option. > > Also: > > ZMQ_CURVE_PUBLICKEY: Set CURVE public key > > This only applies to clients, not servers. > > And: > > ZMQ_CURVE_SECRETKEY: Set CURVE secret key > > This also applies to servers. > > > -- > Peter Kleiweg > http://pkleiweg.home.xs4all.nl/ > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev -- - Pieter Hintjens CEO of iMatix.com Founder of ZeroMQ community blog: http://hintjens.com _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
