summaryrefslogtreecommitdiff
path: root/src/or/connection_or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-08-30 10:33:57 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:39:31 -0400
commit88c2a6b9361d7d624f9d34dc855b940554a05fb3 (patch)
tree36a9eade5a9509be7ea25580fa8eec622a6c6276 /src/or/connection_or.h
parente64bac6eb4a89ae63a2d5c1cb41cac903f1e8e66 (diff)
downloadtor-88c2a6b9361d7d624f9d34dc855b940554a05fb3.tar.gz
tor-88c2a6b9361d7d624f9d34dc855b940554a05fb3.zip
Send and receive AUTHENTICATE cells correctly with ED keys.
Includes updated test for authchallenge cells
Diffstat (limited to 'src/or/connection_or.h')
-rw-r--r--src/or/connection_or.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/or/connection_or.h b/src/or/connection_or.h
index 7fdfbb0a3c..da95718ac9 100644
--- a/src/or/connection_or.h
+++ b/src/or/connection_or.h
@@ -88,11 +88,14 @@ 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 authchallenge_type_is_supported(uint16_t challenge_type);
+int authchallenge_type_is_better(uint16_t challenge_type_a,
+ uint16_t challenge_type_b);
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,
- int server);
+ const int authtype,
+ crypto_pk_t *signing_key,
+ const ed25519_keypair_t *ed_signing_key,
+ int server);
MOCK_DECL(int,connection_or_send_authenticate_cell,
(or_connection_t *conn, int type));