diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-09-27 13:15:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-10 23:14:18 -0400 |
commit | 83bb9742b541ff53e72c407f45093c137e13a073 (patch) | |
tree | 4758f84e85b485aa23565fd705c5609b7546e65a /src/or/or.h | |
parent | 445f94789039bf2d25800741b1ad77c99ab4044d (diff) | |
download | tor-83bb9742b541ff53e72c407f45093c137e13a073.tar tor-83bb9742b541ff53e72c407f45093c137e13a073.tar.gz |
Hook up all of the prop176 code; allow v3 negotiations to actually work
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index a40598fb4..887dcb6ad 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1142,6 +1142,16 @@ typedef struct or_handshake_state_t { /** True iff we have received and processed an AUTHENTICATE cell */ unsigned int received_authenticate : 1; + /* True iff we've received valid authentication to some identity. */ + unsigned int authenticated : 1; + + /** Identity digest that we have received and authenticated for our peer + * on this connection. */ + uint8_t authenticated_peer_id[DIGEST_LEN]; + + /** DOCDOC */ + uint8_t auth_challenge[OR_AUTH_CHALLENGE_LEN]; + /** Digests of the cells that we have sent or received as part of a V3 * handshake. Used for making and checking AUTHENTICATE cells. * |