mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user