From: Nick Mathewson Date: Wed, 4 Jun 2025 15:09:47 +0000 (-0400) Subject: Give relay_crypto.c access to cpath private members. X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e7b40446560f2465f32438f338e4bfd826836dab;p=thirdparty%2Ftor.git 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. --- 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,