diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-09 09:44:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-09 09:45:50 -0400 |
commit | 5e30e26c6d7ae33e23557bc18def36f98be4e1e6 (patch) | |
tree | d2f530092f07a79e6c2fc6e7dc6ac981445562eb /src/test/test_shared_random.c | |
parent | 05110c9294f64b494600b056670f62ca89b52b0b (diff) | |
download | tor-5e30e26c6d7ae33e23557bc18def36f98be4e1e6.tar.gz tor-5e30e26c6d7ae33e23557bc18def36f98be4e1e6.zip |
Chop another ~93 RSA key generations out of the unit tests
We have a mock for our RSA key generation function, so we now wire
it to pk_generate(). This covers all the cases that were not using
pk_generate() before -- all ~93 of them.
Diffstat (limited to 'src/test/test_shared_random.c')
-rw-r--r-- | src/test/test_shared_random.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c index 19f2e2d95e..056f199b94 100644 --- a/src/test/test_shared_random.c +++ b/src/test/test_shared_random.c @@ -1110,11 +1110,9 @@ test_keep_commit(void *arg) trusteddirserver_get_by_v3_auth_digest_m); { - k = crypto_pk_new(); + k = pk_generate(1); /* Setup a minimal dirauth environment for this test */ /* Have a key that is not the one from our commit. */ - tt_int_op(0, ==, crypto_pk_generate_key(k)); - tt_int_op(0, ==, crypto_pk_get_fingerprint(k, fp, 0)); init_authority_state(); state = get_sr_state(); } |