aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-03-19 21:17:57 +0000
committerNick Mathewson <nickm@torproject.org>2003-03-19 21:17:57 +0000
commit51ed97504b4d7246537f99993f64fc422d9e5d6d (patch)
tree3cccefe19cf624395e05667e729c54eb5fecd397 /src
parent2b2eff33c5ac1b8b22671e8d0f999ae89155f723 (diff)
downloadtor-51ed97504b4d7246537f99993f64fc422d9e5d6d.tar.gz
tor-51ed97504b4d7246537f99993f64fc422d9e5d6d.zip
Fix op handshake for longer keys
svn:r200
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_op.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_op.c b/src/or/connection_op.c
index 993646947a..08ccb3da0f 100644
--- a/src/or/connection_op.c
+++ b/src/or/connection_op.c
@@ -59,13 +59,14 @@ int op_handshake_process_keys(connection_t *conn) {
crypto_perror());
return -1;
}
+ /* XXXX Check length */
log(LOG_DEBUG,"Successfully decrypted keys from new OP.");
conn->bandwidth = ntohl(*((uint32_t *)auth_plain));
crypto_cipher_set_key(conn->b_crypto, auth_plain+4);
- crypto_cipher_set_key(conn->f_crypto, auth_plain+12);
+ crypto_cipher_set_key(conn->f_crypto, auth_plain+20);
#if 0
printf("f_session_key: ");
for(x=0;x<8;x++) {