From ab34901263c6593a56c039979e04bf9345932dd1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 2 May 2005 22:35:18 +0000 Subject: New and frightening code to implement fast-path first-hop CREATE_FAST cells. Watch out when we bump the version to 0.1.0.6-rc! svn:r4162 --- src/or/rendservice.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/or/rendservice.c') diff --git a/src/or/rendservice.c b/src/or/rendservice.c index aa39f76764..9432440eb7 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -511,7 +511,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, size_t request_l cpath->magic = CRYPT_PATH_MAGIC; launched->build_state->expiry_time = time(NULL) + MAX_REND_TIMEOUT; - cpath->handshake_state = dh; + cpath->dh_handshake_state = dh; dh = NULL; if (circuit_init_cpath_crypto(cpath,keys+DIGEST_LEN,1)<0) goto err; @@ -722,7 +722,7 @@ rend_service_rendezvous_has_opened(circuit_t *circuit) /* All we need to do is send a RELAY_RENDEZVOUS1 cell... */ memcpy(buf, circuit->rend_cookie, REND_COOKIE_LEN); - if (crypto_dh_get_public(hop->handshake_state, + if (crypto_dh_get_public(hop->dh_handshake_state, buf+REND_COOKIE_LEN, DH_KEY_LEN)<0) { log_fn(LOG_WARN,"Couldn't get DH public key"); goto err; @@ -738,8 +738,8 @@ rend_service_rendezvous_has_opened(circuit_t *circuit) goto err; } - crypto_dh_free(hop->handshake_state); - hop->handshake_state = NULL; + crypto_dh_free(hop->dh_handshake_state); + hop->dh_handshake_state = NULL; /* Append the cpath entry. */ hop->state = CPATH_STATE_OPEN; -- cgit v1.2.3-54-g00ecf