mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix op handshake for longer keys
svn:r200
This commit is contained in:
parent
2b2eff33c5
commit
51ed97504b
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user