diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-12-01 08:09:48 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-12-01 08:09:48 +0000 |
commit | d8ad247dfdea0705de2990af68026cdf6da22430 (patch) | |
tree | 91be989c484e6ae0857cfe08f4e295a919921771 /src/or/or.h | |
parent | 1789f94668f8da029d18efb51bc3d0652488f706 (diff) | |
download | tor-d8ad247dfdea0705de2990af68026cdf6da22430.tar.gz tor-d8ad247dfdea0705de2990af68026cdf6da22430.zip |
r15088@tombo: nickm | 2007-11-30 23:47:29 -0500
Add support to get a callback invoked when the client renegotiate a connection. Also, make clients renegotiate. (not enabled yet, until they detect that the server acted like a v2 server)
svn:r12623
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h index edaeaf9f7f..6f8e40be12 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -236,13 +236,15 @@ typedef enum { #define OR_CONN_STATE_PROXY_READING 3 /** State for a connection to an OR: SSL is handshaking, not done yet. */ #define OR_CONN_STATE_TLS_HANDSHAKING 4 +/** DOCDOC */ +#define OR_CONN_STATE_TLS_RENEGOTIATING 5 /** State for a connection to an OR: We're done with our SSL handshake, but we * haven't yet negotiated link protocol versions and finished authenticating. */ -#define OR_CONN_STATE_OR_HANDSHAKING 5 +#define OR_CONN_STATE_OR_HANDSHAKING 6 /** State for a connection to an OR: Ready to send/receive cells. */ -#define OR_CONN_STATE_OPEN 6 -#define _OR_CONN_STATE_MAX 6 +#define OR_CONN_STATE_OPEN 7 +#define _OR_CONN_STATE_MAX 7 #define _EXIT_CONN_STATE_MIN 1 /** State for an exit connection: waiting for response from dns farm. */ @@ -924,6 +926,7 @@ typedef struct or_connection_t { * connection, which half of the space should * we use? */ unsigned int is_canonical:1; /**< DOCDOC */ + unsigned int have_renegotiated:1; /**DOCDOC */ uint8_t link_proto; /**< What protocol version are we using? 0 for * "none negotiated yet." */ uint16_t next_circ_id; /**< Which circ_id do we try to use next on @@ -2775,7 +2778,9 @@ int connection_or_process_inbuf(or_connection_t *conn); int connection_or_flushed_some(or_connection_t *conn); int connection_or_finished_flushing(or_connection_t *conn); int connection_or_finished_connecting(or_connection_t *conn); +#if 0 int connection_or_finish_or_handshake(or_connection_t *conn); +#endif or_connection_t *connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest); |