]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Create rendmid.h
authorSebastian Hahn <sebastian@torproject.org>
Fri, 23 Jul 2010 20:03:33 +0000 (22:03 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 27 Jul 2010 08:00:45 +0000 (10:00 +0200)
src/or/or.h
src/or/rendcommon.c
src/or/rendmid.c
src/or/rendmid.h [new file with mode: 0644]

index d3539c756e653634fc53950e17b6f6ba821cda30..3e7fe23103df9315e6124c666983c0be15aa4214 100644 (file)
@@ -3432,16 +3432,6 @@ typedef struct rend_cache_entry_t {
   rend_service_descriptor_t *parsed; /**< Parsed value of 'desc' */
 } rend_cache_entry_t;
 
-/********************************* rendmid.c *******************************/
-int rend_mid_establish_intro(or_circuit_t *circ, const char *request,
-                             size_t request_len);
-int rend_mid_introduce(or_circuit_t *circ, const char *request,
-                       size_t request_len);
-int rend_mid_establish_rendezvous(or_circuit_t *circ, const char *request,
-                                  size_t request_len);
-int rend_mid_rendezvous(or_circuit_t *circ, const char *request,
-                        size_t request_len);
-
 /********************************* routerlist.c ***************************/
 
 /** Represents information about a single trusted directory server. */
index a8862ae447362fa5d4ec37cef940046643330f88..fc43f11bb36153141c6c97a6ad3b6b2e1116733c 100644 (file)
@@ -13,6 +13,7 @@
 #include "config.h"
 #include "rendclient.h"
 #include "rendcommon.h"
+#include "rendmid.h"
 #include "rendservice.h"
 #include "routerlist.h"
 
index 393347b6db6ea041aa469245045ec0cbd580b3df..48cb10f52e1e16b4ff1fe1a5d285415e031cef62 100644 (file)
@@ -11,6 +11,7 @@
 #include "circuitlist.h"
 #include "config.h"
 #include "relay.h"
+#include "rendmid.h"
 
 /** Respond to an ESTABLISH_INTRO cell by checking the signed data and
  * setting the circuit's purpose and service pk digest.
diff --git a/src/or/rendmid.h b/src/or/rendmid.h
new file mode 100644 (file)
index 0000000..92df878
--- /dev/null
@@ -0,0 +1,25 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2010, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file geoip.h
+ * \brief Header file for geoip functions
+ **/
+
+#ifndef _TOR_GEOIP_H
+#define _TOR_GEOIP_H
+
+int rend_mid_establish_intro(or_circuit_t *circ, const char *request,
+                             size_t request_len);
+int rend_mid_introduce(or_circuit_t *circ, const char *request,
+                       size_t request_len);
+int rend_mid_establish_rendezvous(or_circuit_t *circ, const char *request,
+                                  size_t request_len);
+int rend_mid_rendezvous(or_circuit_t *circ, const char *request,
+                        size_t request_len);
+
+#endif
+