]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Hiding crypt_path_t: Introduce opaque crypt_path_private_t .
authorGeorge Kadianakis <desnacked@riseup.net>
Mon, 8 Apr 2019 11:35:02 +0000 (14:35 +0300)
committerGeorge Kadianakis <desnacked@riseup.net>
Fri, 3 May 2019 15:15:00 +0000 (18:15 +0300)
This will be our base for incrementally hiding crypt_path_t.

src/core/or/crypt_path_st.h

index 429480f8abc258a701f69e652297244dc79bf9b1..90f6a37881fe0704eb41efc4269520eae7a8ee4a 100644 (file)
@@ -24,6 +24,15 @@ struct onion_handshake_state_t {
   } u;
 };
 
+#ifdef CRYPT_PATH_PRIVATE
+
+/* The private parts of crypt path that don't need to be exposed to all the
+ * modules. */
+struct crypt_path_private_t {
+};
+
+#endif
+
 /** Holds accounting information for a single step in the layered encryption
  * performed by a circuit.  Used only at the client edge of a circuit. */
 struct crypt_path_t {
@@ -65,6 +74,10 @@ struct crypt_path_t {
                        * at this step? */
   int deliver_window; /**< How many cells are we willing to deliver originating
                        * at this step? */
+
+  /* Private parts of the crypt_path. Eventually everything should be
+   * private. */
+  struct crypt_path_private_t *private;
 };
 
 #endif