Make crypto_strongest_rand() non-mockable
commitea5792f333b1b92306d20e60b5e12bb0633aa740
authorNick Mathewson <nickm@torproject.org>
Tue, 18 Sep 2018 16:40:18 +0000 (18 12:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 18 Sep 2018 16:40:18 +0000 (18 12:40 -0400)
tree48f82aafe09b28d36c8034e800ef966d006b0960
parent50367d06f2ae1a06e6553a8925b5aded7f610082
Make crypto_strongest_rand() non-mockable

Instead, have it call a mockable function.  We don't want
crypto_strongest_rand() to be mockable, since doing so creates a
type error when we call it from ed25519-donna, which we do not build
in a test mode.

Fixes bug 27728; bugfix on 0.3.5.1-alpha
changes/bug27728 [new file with mode: 0644]
src/lib/crypt_ops/crypto_rand.c
src/lib/crypt_ops/crypto_rand.h
src/test/test_hs_descriptor.c