Browse Source

Create rendmid.h

Sebastian Hahn 13 years ago
parent
commit
52e6e915fb
4 changed files with 27 additions and 10 deletions
  1. 0 10
      src/or/or.h
  2. 1 0
      src/or/rendcommon.c
  3. 1 0
      src/or/rendmid.c
  4. 25 0
      src/or/rendmid.h

+ 0 - 10
src/or/or.h

@@ -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. */

+ 1 - 0
src/or/rendcommon.c

@@ -13,6 +13,7 @@
 #include "config.h"
 #include "rendclient.h"
 #include "rendcommon.h"
+#include "rendmid.h"
 #include "rendservice.h"
 #include "routerlist.h"
 

+ 1 - 0
src/or/rendmid.c

@@ -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.

+ 25 - 0
src/or/rendmid.h

@@ -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
+