0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-21 06:59:38 +08:00
Nikolay Edigaryev 884e00cb4a Problem: CURVE mechanism is unusable with chroot()
libsodium calls abort() when /dev/urandom can't be found
even if one creates ZeroMQ context before calling chroot()[1].

This happens because crypto gets initialized on handshake,
and at that moment the process is already chroot'ed.

Solution: initialize cryptographic libraries in ctx

randombytes_close() is already there in the destructor.

[1] https://download.libsodium.org/doc/usage/index.html
2016-03-30 03:45:12 +05:00
..
2016-01-29 21:17:11 +02:00
2016-01-28 15:07:31 +01:00
2016-01-29 10:53:47 +02:00
2016-01-28 15:07:31 +01:00
2016-02-06 22:37:45 +11:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2014-01-12 12:30:45 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-29 21:17:11 +02:00
2016-01-28 15:07:31 +01:00
2016-03-20 20:38:18 +01:00
2016-01-28 15:07:31 +01:00
2016-03-19 14:49:22 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-29 21:17:11 +02:00
2012-06-12 21:30:24 -04:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00
2016-01-28 15:07:31 +01:00