diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-10-24 09:19:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-05-28 10:42:29 -0400 |
commit | 0b819a2a7c8a79a222ffd8af0b239133f9becd7c (patch) | |
tree | 5f70000c8fd35d01029f417ea557ced0daa97854 /src/or/torcert.h | |
parent | 79db24b3d5cb845b18d737bbc63510154f6a87c7 (diff) | |
download | tor-0b819a2a7c8a79a222ffd8af0b239133f9becd7c.tar.gz tor-0b819a2a7c8a79a222ffd8af0b239133f9becd7c.zip |
Enforce more correspondence between ri and ei
In particular, they have to list the same ed25519 certificate, and
the SHA256 digest of the ei needs to match.
Diffstat (limited to 'src/or/torcert.h')
-rw-r--r-- | src/or/torcert.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/torcert.h b/src/or/torcert.h index ae9361ff16..4680ca61e6 100644 --- a/src/or/torcert.h +++ b/src/or/torcert.h @@ -64,6 +64,8 @@ int tor_cert_checksig(tor_cert_t *cert, const ed25519_public_key_t *pubkey, time_t now); tor_cert_t *tor_cert_dup(const tor_cert_t *cert); +int tor_cert_eq(const tor_cert_t *cert1, const tor_cert_t *cert2); +int tor_cert_opt_eq(const tor_cert_t *cert1, const tor_cert_t *cert2); #endif |