erickt / rust-zmq

Rust zeromq bindings.
Apache License 2.0
886 stars 189 forks source link

Curve encryption does not work with 0.10.0 #357

Open santidhammo opened 1 year ago

santidhammo commented 1 year ago

I am attempting to use curve encryption, it appears that libsodium is no longer used from 0.10.0, the following build commit changed this behavior:

https://github.com/erickt/rust-zmq/commit/953c9dce33bf18cea743b65f560729d70a6b3e28

However, I do not see any features which can be used to re-enable this behavior, nor can I find any documentation why this commit has been merged into main.

LarsHaalck commented 1 year ago

I'm wondering the same. Seems it was first "commented out" in a6117e024207c79914ebac83f0bb2728efe9adfb and then later completely removed in 953c9dce33bf18cea743b65f560729d70a6b3e28.

magnificus commented 1 year ago

Yeah damn a bit stuck on this, might be doing something wrong though.

let keys = CurveKeyPair::new().unwrap();

throws

thread 'main' panicked at 'called Result::unwrap() on an Err value: Not supported'

magnificus commented 1 year ago

I rolled back to 0.9.2 for now, this works for me

zmq = {version = "0.9.2", features = ["vendored"]}

algesten commented 2 months ago

Is there a reason #383 hasn't been merged? Can I help?