Giter Club home page Giter Club logo

Comments (6)

bluca avatar bluca commented on September 22, 2024

libzmq 4.1 has integrated curve support - why are you trying to use this library?

from libcurve.

tnguyen-Alta avatar tnguyen-Alta commented on September 22, 2024

Hi @bluca , thanks for the prompt response.

Reason I tried libcurve because I thought in order to use zmq_setsockopt (*socket, ZMQ_CURVE_ROUTER, const *char, size_t), I would need to have ZMQ_HAVE_CURVE. The value I get from geterr() is 22 meaning that I didn't hit to :

"libzmq\src\option.cpp"

// If curve encryption isn't built, these options provoke EINVAL
#ifdef ZMQ_HAVE_CURVE
case ZMQ_CURVE_SERVER:
if (is_int && (value == 0 || value == 1)) {
as_server = value;
mechanism = value? ZMQ_CURVE: ZMQ_NULL;
return 0;
}
break;

from libcurve.

bluca avatar bluca commented on September 22, 2024

That's because of a configuration error in your libzmq build. Make sure it can find libsodium and it should enable curve.

from libcurve.

tnguyen-Alta avatar tnguyen-Alta commented on September 22, 2024

@bluca You are right. I missed to change libzmq Properties\Configuration Properties\ZMQ Option\Libsodium ON to Yes.

I am able to use CURVE now.

Thank you very much.

from libcurve.

bluca avatar bluca commented on September 22, 2024

No problem

from libcurve.

tnguyen-Alta avatar tnguyen-Alta commented on September 22, 2024

Hi Bluca,

I thought I have resolved this problem. I actually resolved the libsodium option with libzmq version 4.2 instead of 4.1. Now I am in need to build libzmq version 4.1 with ZMQ_HAVE_CURVE (libsodium) however I am still not able to have it enabled. Can you give me some instruction on this? In my Libzmq\Properties\Configuration Property, I have set ZMQ Options\sodium to Yes and apply to All Configurations. I also choose in Configuration Property\Local Dependencies\libsodium\Linkage=Dynamic (DLL).

Thank you for your supports.

from libcurve.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.