diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-01 12:13:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-15 12:03:37 -0400 |
commit | fd6749203ed9ca27263e895b53a12a6d15878cdd (patch) | |
tree | 3330a593c906e8d567006cafbd0a7b3fc849a35d /src/common/crypto.h | |
parent | 4526c3e0b617bd179bb0728ac2ea438e9a2276ed (diff) | |
download | tor-fd6749203ed9ca27263e895b53a12a6d15878cdd.tar.gz tor-fd6749203ed9ca27263e895b53a12a6d15878cdd.zip |
More unit tests for handle_client_auth_nonce
Incidentally, this business here where I make crypto_rand mockable:
this is exactly the kind of thing that would make me never want to
include test-support stuff in production builds.
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 651d553a4e..2750ed8109 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -248,7 +248,7 @@ int crypto_expand_key_material_rfc5869_sha256( /* random numbers */ int crypto_seed_rng(int startup); -int crypto_rand(char *to, size_t n); +MOCK_DECL(int,crypto_rand,(char *to, size_t n)); int crypto_strongest_rand(uint8_t *out, size_t out_len); int crypto_rand_int(unsigned int max); uint64_t crypto_rand_uint64(uint64_t max); |