[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[or-cvs] Fix op handshake for longer keys
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv28313/src/or
Modified Files:
connection_op.c
Log Message:
Fix op handshake for longer keys
Index: connection_op.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_op.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- connection_op.c 2 Oct 2002 22:54:20 -0000 1.12
+++ connection_op.c 19 Mar 2003 21:17:57 -0000 1.13
@@ -59,13 +59,14 @@
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++) {