Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security: don't generate zero keys when CURVE support is missing
If CURVE support is missing at runtime, zcert_new() will unfortunately generate zeroed keys instead of failing. These zeroed keys will later cause assertions in the zeromq code. Instead replace zcert_new() with zmq_curve_keypair()/zcert_new_from(). zmq_curve_keypair() should fail with errno == ENOTSUP if CURVE support is missing from libzmq, so we can generate a reasonable error instead of silently failing. Fixes #7
- Loading branch information