diff options
author | David Goulet <dgoulet@torproject.org> | 2019-01-08 11:31:32 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-04-29 12:17:33 -0400 |
commit | e5806dcea891cf9c6aa4d55c6d5deae9792792d7 (patch) | |
tree | eff1cc80bea03044ed7c2aa8c0222c526c8fac7a /src/core/or/sendme.h | |
parent | 206d28ff152f2df5ccf966a5923804718f49b43b (diff) | |
download | tor-e5806dcea891cf9c6aa4d55c6d5deae9792792d7.tar.gz tor-e5806dcea891cf9c6aa4d55c6d5deae9792792d7.zip |
sendme: Move code to the new files sendme.{c|h}
Take apart the SENDME cell specific code and put it in sendme.{c|h}. This is
part of prop289 that implements authenticated SENDMEs.
Creating those new files allow for the already huge relay.c to not grow in LOC
and makes it easier to handle and test the SENDME cells in an isolated way.
This commit only moves code. No behavior change.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/sendme.h')
-rw-r--r-- | src/core/or/sendme.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/or/sendme.h b/src/core/or/sendme.h new file mode 100644 index 0000000000..3ff1d98e64 --- /dev/null +++ b/src/core/or/sendme.h @@ -0,0 +1,20 @@ +/* Copyright (c) 2019, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * \file sendme.h + * \brief Header file for sendme.c. + **/ + +#ifndef TOR_SENDME_H +#define TOR_SENDME_H + +#include "core/or/edge_connection_st.h" +#include "core/or/crypt_path_st.h" +#include "core/or/circuit_st.h" + +void sendme_connection_edge_consider_sending(edge_connection_t *edge_conn); +void sendme_circuit_consider_sending(circuit_t *circ, + crypt_path_t *layer_hint); + +#endif /* !defined(TOR_SENDME_H) */ |