summaryrefslogtreecommitdiff
path: root/src/common/container.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-10-08 09:13:09 -0400
committerNick Mathewson <nickm@torproject.org>2015-05-28 10:41:49 -0400
commit006b7ce5ff2a90a517e2842fcdd716ed60a90f14 (patch)
tree80eb7ca264bc3b49e34e5fc29f0d2e2a55241438 /src/common/container.h
parent592a43910706a67048c7d05e45d35dc79712820a (diff)
downloadtor-006b7ce5ff2a90a517e2842fcdd716ed60a90f14.tar.gz
tor-006b7ce5ff2a90a517e2842fcdd716ed60a90f14.zip
Fix the position-check for ed25519 certs to work with annotations
When there are annotations on a router descriptor, the ed25519-identity element won't be at position 0 or 1; it will be at router+1 or router-1. This patch also adds a missing smartlist function to search a list for an item with a particular pointer.
Diffstat (limited to 'src/common/container.h')
-rw-r--r--src/common/container.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/container.h b/src/common/container.h
index d07697f019..64c9b7813e 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -38,6 +38,7 @@ void smartlist_reverse(smartlist_t *sl);
void smartlist_string_remove(smartlist_t *sl, const char *element);
int smartlist_contains(const smartlist_t *sl, const void *element);
int smartlist_contains_string(const smartlist_t *sl, const char *element);
+int smartlist_pos(const smartlist_t *sl, const void *element);
int smartlist_string_pos(const smartlist_t *, const char *elt);
int smartlist_contains_string_case(const smartlist_t *sl, const char *element);
int smartlist_contains_int_as_string(const smartlist_t *sl, int num);