From d43646e191dec6f800f63acb6a6861190b77d86f Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 12 May 2016 13:30:07 -0400 Subject: 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 Signed-off-by: George Kadianakis --- src/or/routerlist.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/routerlist.h') diff --git a/src/or/routerlist.h b/src/or/routerlist.h index be242d6e87..17adade5d3 100644 --- a/src/or/routerlist.h +++ b/src/or/routerlist.h @@ -52,7 +52,8 @@ dir_server_t *router_get_trusteddirserver_by_digest(const char *d); dir_server_t *router_get_fallback_dirserver_by_digest( const char *digest); int router_digest_is_fallback_dir(const char *digest); -dir_server_t *trusteddirserver_get_by_v3_auth_digest(const char *d); +MOCK_DECL(dir_server_t *, trusteddirserver_get_by_v3_auth_digest, + (const char *d)); const routerstatus_t *router_pick_trusteddirserver(dirinfo_type_t type, int flags); const routerstatus_t *router_pick_fallback_dirserver(dirinfo_type_t type, -- cgit v1.2.3-54-g00ecf