]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a stub for rend_service_allow_direct_connection
authorteor <teor2345@gmail.com>
Wed, 17 Aug 2016 07:47:24 +0000 (17:47 +1000)
committerteor <teor2345@gmail.com>
Wed, 24 Aug 2016 01:02:19 +0000 (11:02 +1000)
It always returns 0. It should be replaced with the Single
Onion version from #17178 when both are merged.

src/or/rendservice.c
src/or/rendservice.h

index c50de83f7e5edd5d8cfa7e2b2529aee5a445483d..2de046326bf2b9681cfd414fbd0a6d39ea69c706 100644 (file)
@@ -3897,3 +3897,11 @@ rend_service_set_connection_addr_port(edge_connection_t *conn,
     return -2;
 }
 
+/* Stub that should be replaced with the #17178 version of the function
+ * when merging. */
+int
+rend_service_allow_direct_connection(const or_options_t *options)
+{
+  (void)options;
+  return 0;
+}
index 4966cb03022882d4c11d3889e8144e1bf6cc89d6..1622086a99f2aa59a2ea558406c76a0038754e3c 100644 (file)
@@ -131,5 +131,7 @@ void directory_post_to_hs_dir(rend_service_descriptor_t *renddesc,
                               const char *service_id, int seconds_valid);
 void rend_service_desc_has_uploaded(const rend_data_t *rend_data);
 
+int rend_service_allow_direct_connection(const or_options_t *options);
+
 #endif