diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-06-19 09:09:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-03 08:39:28 -0400 |
commit | b4a5c779014b35d60f4a2ddcec31e7075ad52995 (patch) | |
tree | a844a09789e2a78be68fdc4e47d082d0d92918c1 /src/or/torcert.h | |
parent | 99b3e54691f451b766556391cba6e26120ad7d84 (diff) | |
download | tor-b4a5c779014b35d60f4a2ddcec31e7075ad52995.tar.gz tor-b4a5c779014b35d60f4a2ddcec31e7075ad52995.zip |
Verify ed25519 link handshake certificates
This code stores the ed certs as appropriate, and tries to check
them. The Ed25519 result is not yet used, and (because of its
behavior) this will break RSA authenticate cells. That will get
fixed as we go, however.
This should implement 19157, but it needs tests, and it needs
to get wired in.
Diffstat (limited to 'src/or/torcert.h')
-rw-r--r-- | src/or/torcert.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/torcert.h b/src/or/torcert.h index 143a2aa3a0..f7ca0ff521 100644 --- a/src/or/torcert.h +++ b/src/or/torcert.h @@ -84,6 +84,16 @@ int or_handshake_certs_rsa_ok(int severity, or_handshake_certs_t *certs, tor_tls_t *tls, time_t now); +int or_handshake_certs_ed25519_ok(int severity, + or_handshake_certs_t *certs, + tor_tls_t *tls, + time_t now); +void or_handshake_certs_check_both(int severity, + or_handshake_certs_t *certs, + tor_tls_t *tls, + time_t now, + const ed25519_public_key_t **ed_id_out, + const common_digests_t **rsa_id_out); #endif |