commit e7b40446560f2465f32438f338e4bfd826836dab
parent ca962e2f14ba1a4e48e536bdc5cfa728a2cf9759
Author: Nick Mathewson <nickm@torproject.org>
Date: Wed, 4 Jun 2025 11:09:47 -0400
Give relay_crypto.c access to cpath private members.
I'd considered moving all the relevant functions to crypt_path.c,
but after some experimentation it didn't seem to improve matters.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/core/crypto/relay_crypto.c b/src/core/crypto/relay_crypto.c
@@ -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,