diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-01 14:44:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-01 15:20:37 -0400 |
commit | f75357ec355e4e716321417e562526ce77f4f931 (patch) | |
tree | ec4fee86437416a79b669e0f4542b7e6593fba97 /src/or/crypt_path_st.h | |
parent | 6ccd98f93e733e39dcd460860aeead017b1b5a4f (diff) | |
download | tor-f75357ec355e4e716321417e562526ce77f4f931.tar.gz tor-f75357ec355e4e716321417e562526ce77f4f931.zip |
Pull a couple more enums from or.h
Diffstat (limited to 'src/or/crypt_path_st.h')
-rw-r--r-- | src/or/crypt_path_st.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/crypt_path_st.h b/src/or/crypt_path_st.h index 7d38c73752..0fde1fab0e 100644 --- a/src/or/crypt_path_st.h +++ b/src/or/crypt_path_st.h @@ -10,6 +10,20 @@ #include "or/relay_crypto_st.h" struct crypto_dh_t; +#define CRYPT_PATH_MAGIC 0x70127012u + +struct fast_handshake_state_t; +struct ntor_handshake_state_t; +struct crypto_dh_t; +struct onion_handshake_state_t { + uint16_t tag; + union { + struct fast_handshake_state_t *fast; + struct crypto_dh_t *tap; + struct ntor_handshake_state_t *ntor; + } u; +}; + /** Holds accounting information for a single step in the layered encryption * performed by a circuit. Used only at the client edge of a circuit. */ struct crypt_path_t { |