diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2019-03-05 17:58:31 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-03-29 14:25:59 -0400 |
commit | a959d7cb98ed0e5b6e2fabf36301accd28f0641c (patch) | |
tree | ffc500161fdebd187fac88694832386e6e61470c /src/test/testing_rsakeys.c | |
parent | f66a17444e4a83e548985784956f321e9e1e1ab2 (diff) | |
download | tor-a959d7cb98ed0e5b6e2fabf36301accd28f0641c.tar.gz tor-a959d7cb98ed0e5b6e2fabf36301accd28f0641c.zip |
Use tor_assertf{_nonfatal} in code
Diffstat (limited to 'src/test/testing_rsakeys.c')
-rw-r--r-- | src/test/testing_rsakeys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/testing_rsakeys.c b/src/test/testing_rsakeys.c index 0f22d4e01b..8ba6bf9fe4 100644 --- a/src/test/testing_rsakeys.c +++ b/src/test/testing_rsakeys.c @@ -448,7 +448,8 @@ static int next_key_idx_2048; static crypto_pk_t * pk_generate_internal(int bits) { - tor_assert(bits == 2048 || bits == 1024); + tor_assertf(bits == 2048 || bits == 1024, + "Wrong key size: %d", bits); #ifdef USE_PREGENERATED_RSA_KEYS int *idxp; |