]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Give relay_crypto.c access to cpath private members.
authorNick Mathewson <nickm@torproject.org>
Wed, 4 Jun 2025 15:09:47 +0000 (11:09 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 10 Jun 2025 23:06:47 +0000 (19:06 -0400)
I'd considered moving all the relevant functions to crypt_path.c,
but after some experimentation it didn't seem to improve matters.

src/core/crypto/relay_crypto.c

index ea3a0cebc28a47e4bd6ff1d6eab122f741848a78..1c01b14c08c877a8a18bf5e35d5b365892ce0053 100644 (file)
@@ -9,6 +9,9 @@
  * @brief Header for relay_crypto.c
  **/
 
+// For access to cpath pvt_crypto field.
+#define CRYPT_PATH_PRIVATE
+
 #include "core/or/or.h"
 #include "core/or/circuitlist.h"
 #include "core/or/crypt_path.h"
@@ -22,9 +25,6 @@
 #include "core/or/or_circuit_st.h"
 #include "core/or/origin_circuit_st.h"
 
-// XXXX: Remove this definition once I'm done refactoring.
-#define pvt_crypto crypto_crypt_path_private_field
-
 #define CGO_AES_BITS 128
 
 /** Return the sendme tag within the <b>crypto</b> object,