tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

rendcommon.h (908B)


      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 */
      6 
      7 /**
      8 * \file rendcommon.h
      9 * \brief Header file for rendcommon.c.
     10 **/
     11 
     12 #ifndef TOR_RENDCOMMON_H
     13 #define TOR_RENDCOMMON_H
     14 
     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;
     20 
     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);
     24 
     25 void assert_circ_anonymity_ok(const origin_circuit_t *circ,
     26                              const or_options_t *options);
     27 
     28 #endif /* !defined(TOR_RENDCOMMON_H) */