mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Downgrade 'invalid result from curve25519 handshake: 4' warning
Also, refactor the way we handle failed handshakes so that this warning doesn't propagate itself to "onion_skin_client_handshake failed" and "circuit_finish_handshake failed" and "connection_edge_process_relay_cell (at origin) failed." Resolves warning from 9635.
This commit is contained in:
+4
-2
@@ -162,7 +162,8 @@ bench_onion_TAP(void)
|
||||
char key_out[CPATH_KEY_MATERIAL_LEN];
|
||||
int s;
|
||||
dh = crypto_dh_dup(dh_out);
|
||||
s = onion_skin_TAP_client_handshake(dh, or, key_out, sizeof(key_out));
|
||||
s = onion_skin_TAP_client_handshake(dh, or, key_out, sizeof(key_out),
|
||||
NULL);
|
||||
crypto_dh_free(dh);
|
||||
tor_assert(s == 0);
|
||||
}
|
||||
@@ -222,7 +223,8 @@ bench_onion_ntor(void)
|
||||
for (i = 0; i < iters; ++i) {
|
||||
uint8_t key_out[CPATH_KEY_MATERIAL_LEN];
|
||||
int s;
|
||||
s = onion_skin_ntor_client_handshake(state, or, key_out, sizeof(key_out));
|
||||
s = onion_skin_ntor_client_handshake(state, or, key_out, sizeof(key_out),
|
||||
NULL);
|
||||
tor_assert(s == 0);
|
||||
}
|
||||
end = perftime();
|
||||
|
||||
Reference in New Issue
Block a user