]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
hs: Stub link_specifier_t in hs_descriptor.h
authorDavid Goulet <dgoulet@torproject.org>
Tue, 22 Aug 2017 18:10:30 +0000 (14:10 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Thu, 24 Aug 2017 17:03:28 +0000 (13:03 -0400)
Avoid including a huge trunnel interface everytime we include hs_descriptor.h

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/hs_descriptor.c
src/or/hs_descriptor.h

index 71f16fee1a5a73740a6b5fcebaac28d716944e8c..b9233c6d7c0c0848ae65675b1f7bd7b7731f39d8 100644 (file)
 /* For unit tests.*/
 #define HS_DESCRIPTOR_PRIVATE
 
-#include "hs_descriptor.h"
-
 #include "or.h"
-#include "circuitbuild.h"
 #include "ed25519_cert.h" /* Trunnel interface. */
+#include "hs_descriptor.h"
+#include "circuitbuild.h"
 #include "parsecommon.h"
 #include "rendcache.h"
 #include "hs_cache.h"
index b4cda7b8454dfe69d7b5e0a21884ca7ebf188ac7..eeeb3e38a40baf41a9837aeaf7c8fe7d0b2f936a 100644 (file)
@@ -19,7 +19,7 @@
 #include "torcert.h"
 
 /* Trunnel */
-#include "ed25519_cert.h"
+struct link_specifier_t;
 
 /* The earliest descriptor format version we support. */
 #define HS_DESC_SUPPORTED_FORMAT_VERSION_MIN 3