Skip to content
Snippets Groups Projects
Commit 51ed9750 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix op handshake for longer keys

svn:r200
parent 2b2eff33
No related branches found
No related tags found
No related merge requests found
......@@ -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++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment