tor  0.4.0.1-alpha
crypt_path_st.h
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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 #ifndef CRYPT_PATH_ST_H
8 #define CRYPT_PATH_ST_H
9 
10 #include "core/or/relay_crypto_st.h"
11 struct crypto_dh_t;
12 
13 #define CRYPT_PATH_MAGIC 0x70127012u
14 
16 struct ntor_handshake_state_t;
17 struct crypto_dh_t;
19  uint16_t tag;
20  union {
21  struct fast_handshake_state_t *fast;
22  struct crypto_dh_t *tap;
23  struct ntor_handshake_state_t *ntor;
24  } u;
25 };
26 
29 struct crypt_path_t {
30  uint32_t magic;
31 
35 
42 
44  char rend_circ_nonce[DIGEST_LEN];/* KH in tor-spec.txt */
45 
48 
54  uint8_t state;
55 #define CPATH_STATE_CLOSED 0
56 #define CPATH_STATE_AWAITING_KEYS 1
57 #define CPATH_STATE_OPEN 2
58  struct crypt_path_t *next;
61  struct crypt_path_t *prev;
68 };
69 
70 #endif
struct crypt_path_t * next
Definition: crypt_path_st.h:58
struct crypto_dh_t * rend_dh_handshake_state
Definition: crypt_path_st.h:41
relay_crypto_t crypto
Definition: crypt_path_st.h:34
#define DIGEST_LEN
Definition: digest_sizes.h:20
char rend_circ_nonce[DIGEST_LEN]
Definition: crypt_path_st.h:44
struct crypt_path_t * prev
Definition: crypt_path_st.h:61
uint8_t state
Definition: crypt_path_st.h:54
onion_handshake_state_t handshake_state
Definition: crypt_path_st.h:38
extend_info_t * extend_info
Definition: crypt_path_st.h:47