tor  0.4.1.0-alpha-dev
or_handshake_state_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 OR_HANDSHAKE_STATE_ST
8 #define OR_HANDSHAKE_STATE_ST
9 
18  unsigned int started_here : 1;
20  unsigned int received_versions : 1;
22  unsigned int received_auth_challenge : 1;
24  unsigned int received_certs_cell : 1;
26  unsigned int received_authenticate : 1;
27 
28  /* True iff we've received valid authentication to some identity. */
29  unsigned int authenticated : 1;
30  unsigned int authenticated_rsa : 1;
31  unsigned int authenticated_ed25519 : 1;
32 
33  /* True iff we have sent a netinfo cell */
34  unsigned int sent_netinfo : 1;
35 
41 
51  unsigned int digest_sent_data : 1;
52  unsigned int digest_received_data : 1;
61 
68  crypto_digest_t *digest_received;
75 };
76 
77 #endif
78 
unsigned int received_authenticate
unsigned int received_auth_challenge
#define DIGEST_LEN
Definition: digest_sizes.h:20
struct tor_cert_st * own_link_cert
or_handshake_certs_t * certs
ed25519_public_key_t authenticated_ed25519_peer_id
uint8_t authenticated_rsa_peer_id[DIGEST_LEN]
crypto_digest_t * digest_sent