From e7b40446560f2465f32438f338e4bfd826836dab Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 4 Jun 2025 11:09:47 -0400 Subject: [PATCH] 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. --- src/core/crypto/relay_crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/crypto/relay_crypto.c b/src/core/crypto/relay_crypto.c index ea3a0cebc2..1c01b14c08 100644 --- 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 crypto object, -- 2.47.2