aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-05-19 13:10:01 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:37:21 -0400
commit4ef42e7c529a95b69d3e830e115e5d0453d38dfb (patch)
tree78b118a70a1211274d1e3bd473d4988bd920779e /src/or/connection_or.h
parent2bf655394942e5b76944df92c8cd002fc15d3382 (diff)
downloadtor-4ef42e7c529a95b69d3e830e115e5d0453d38dfb.tar.gz
tor-4ef42e7c529a95b69d3e830e115e5d0453d38dfb.zip
Refactor ...compute_authenticate_cell_body() to return a var_cell_t.
This means we don't need to precompute the length. Helps simplify the implementation of 19156.
Diffstat (limited to 'src/or/connection_or.h')
-rw-r--r--src/or/connection_or.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection_or.h b/src/or/connection_or.h
index 8373ed92f0..65a8ac1467 100644
--- a/src/or/connection_or.h
+++ b/src/or/connection_or.h
@@ -84,8 +84,7 @@ int connection_or_send_versions(or_connection_t *conn, int v3_plus);
MOCK_DECL(int,connection_or_send_netinfo,(or_connection_t *conn));
int connection_or_send_certs_cell(or_connection_t *conn);
int connection_or_send_auth_challenge_cell(or_connection_t *conn);
-int connection_or_compute_authenticate_cell_body(or_connection_t *conn,
- uint8_t *out, size_t outlen,
+var_cell_t *connection_or_compute_authenticate_cell_body(or_connection_t *conn,
const int authtype,
crypto_pk_t *signing_key,
ed25519_keypair_t *ed_signing_key,