summaryrefslogtreecommitdiff
path: root/src/or/routerlist.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-05-17 13:24:01 -0400
committerNick Mathewson <nickm@torproject.org>2016-05-17 13:24:01 -0400
commit00f74e0372a956f9db590e1cb2ddcfb265125023 (patch)
treeefd60c2de5ace1cf2106ab36550db7ed21957a88 /src/or/routerlist.h
parent49ff09aef27d2883b77008be56c29def2a6a8dff (diff)
downloadtor-00f74e0372a956f9db590e1cb2ddcfb265125023.tar.gz
tor-00f74e0372a956f9db590e1cb2ddcfb265125023.zip
Improve API of routerinfo_incompatible_with_extrainfo()
This API change makes it so that routerinfo_incompatible...() no longer takes a routerinfo_t, so that it's obvious that it should only look at fields from the signed_descriptor_t. This change should prevent a recurrence of #17150.
Diffstat (limited to 'src/or/routerlist.h')
-rw-r--r--src/or/routerlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.h b/src/or/routerlist.h
index 200533fe91..bbe99f8173 100644
--- a/src/or/routerlist.h
+++ b/src/or/routerlist.h
@@ -187,7 +187,7 @@ void update_extrainfo_downloads(time_t now);
void router_reset_descriptor_download_failures(void);
int router_differences_are_cosmetic(const routerinfo_t *r1,
const routerinfo_t *r2);
-int routerinfo_incompatible_with_extrainfo(const routerinfo_t *ri,
+int routerinfo_incompatible_with_extrainfo(const crypto_pk_t *ri,
extrainfo_t *ei,
signed_descriptor_t *sd,
const char **msg);