1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
9 * \brief Header file for rendcommon.c.
12 #ifndef TOR_RENDCOMMON_H
13 #define TOR_RENDCOMMON_H
15 typedef enum rend_intro_point_failure_t
{
16 INTRO_POINT_FAILURE_GENERIC
= 0,
17 INTRO_POINT_FAILURE_TIMEOUT
= 1,
18 INTRO_POINT_FAILURE_UNREACHABLE
= 2,
19 } rend_intro_point_failure_t
;
21 void rend_process_relay_cell(circuit_t
*circ
, const crypt_path_t
*layer_hint
,
22 int command
, size_t length
,
23 const uint8_t *payload
);
25 void assert_circ_anonymity_ok(const origin_circuit_t
*circ
,
26 const or_options_t
*options
);
28 #endif /* !defined(TOR_RENDCOMMON_H) */