From 80955be6ecae7095d267981b39d10237aabc38a6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 17 Mar 2018 10:21:57 -0400 Subject: Move relay-crypto functions from relay.[ch] to relay_crypto.[ch] This should help us improve modularity, and should also make it easier for people to experiment with other relay crypto strategies down the road. This commit is pure function movement. --- src/or/relay_crypto.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/or/relay_crypto.h (limited to 'src/or/relay_crypto.h') diff --git a/src/or/relay_crypto.h b/src/or/relay_crypto.h new file mode 100644 index 0000000000..8d09179417 --- /dev/null +++ b/src/or/relay_crypto.h @@ -0,0 +1,23 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2017, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * \file relay.h + * \brief Header file for relay.c. + **/ + +#ifndef TOR_RELAY_CRYPTO_H +#define TOR_RELAY_CRYPTO_H + +int relay_decrypt_cell(circuit_t *circ, cell_t *cell, + cell_direction_t cell_direction, + crypt_path_t **layer_hint, char *recognized); +void relay_encrypt_cell_outbound(cell_t *cell, origin_circuit_t *or_circ, + crypt_path_t *layer_hint); +void relay_encrypt_cell_inbound(cell_t *cell, or_circuit_t *or_circ); + +#endif /* !defined(TOR_RELAY_CRYPTO_H) */ + -- cgit v1.2.3-54-g00ecf