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.
This commit is contained in:
Nick Mathewson
2016-09-09 09:44:57 -04:00
parent 05110c9294
commit 5e30e26c6d
5 changed files with 39 additions and 5 deletions
+1 -3
View File
@@ -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();
}