[zeromq-dev] curve: libsodium thread safety

Frank Hartmann soundart at gmx.net
Fri May 9 23:04:44 CEST 2014


Pieter Hintjens <ph at imatix.com> writes:

> Sounds like you've identified a problem. There are two classes that
> use libsodium; best would be to call sodium_init() in either of these,
> the first time they're used, under control of a mutex to prevent
> races.
>
> Do you want to try making this change and sending us a pull request?


Hi,

done and thanks for merging!

Would you prefer moving the tweetnacl files being moved into
libzmq/foreign/ or is the current location ok?

I think most changes will come to the contrib/randombytes.cpp (if any
come at all) introducing random providers for other platforms.

kind regards
  Frank



More information about the zeromq-dev mailing list