diff options
author | David Goulet <dgoulet@torproject.org> | 2016-05-12 13:30:07 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:41 -0400 |
commit | d43646e191dec6f800f63acb6a6861190b77d86f (patch) | |
tree | 60d1e2797fff1d890c488c6ecabb302232144f2a /src/or/routerlist.c | |
parent | cd858d78a7d04fa64b9af3d602c435154acd284f (diff) | |
download | tor-d43646e191dec6f800f63acb6a6861190b77d86f.tar.gz tor-d43646e191dec6f800f63acb6a6861190b77d86f.zip |
prop250: Fix unit tests about the RSA fingerprint check
Code has been changed so every RSA fingerprint for a commit in our state is
validated before being used. This fixes the unit tests by mocking one of the
key function and updating the hardcoded state string.
Also, fix a time parsing overflow on platforms with 32bit time_t
Signed-off-by: David Goulet <dgoulet@torproject.org>
Signed-off-by: George Kadianakis <desnacked@riseup.net>
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index bdb3d490c7..4d55b2e44f 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1494,8 +1494,8 @@ router_digest_is_fallback_dir(const char *digest) * v3 identity key hashes to <b>digest</b>, or NULL if no such authority * is known. */ -dir_server_t * -trusteddirserver_get_by_v3_auth_digest(const char *digest) +MOCK_IMPL(dir_server_t *, +trusteddirserver_get_by_v3_auth_digest, (const char *digest)) { if (!trusted_dir_servers) return NULL; |