aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/connection_or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-16 10:07:21 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-16 10:08:15 -0400
commit47a48e2f5a384450679a544e7a1f26f378a26a78 (patch)
treea9848573bd201bca1017fd711f6388328dbe6f32 /src/core/or/connection_or.h
parentb0d7b100886ef14a785f6ca1de968df9a884d0a7 (diff)
downloadtor-47a48e2f5a384450679a544e7a1f26f378a26a78.tar.gz
tor-47a48e2f5a384450679a544e7a1f26f378a26a78.zip
Define new CONST_TO_*_CONN() functions for const-to-const casts
These names are analogous to the CONST_TO_*_CIRC() functions we have for circuits. Part of #40046.
Diffstat (limited to 'src/core/or/connection_or.h')
-rw-r--r--src/core/or/connection_or.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/or/connection_or.h b/src/core/or/connection_or.h
index e9ace56ab4..fe81b5c5e1 100644
--- a/src/core/or/connection_or.h
+++ b/src/core/or/connection_or.h
@@ -16,6 +16,7 @@ struct ed25519_public_key_t;
struct ed25519_keypair_t;
or_connection_t *TO_OR_CONN(connection_t *);
+const or_connection_t *CONST_TO_OR_CONN(const connection_t *);
#include "core/or/orconn_event.h"