summaryrefslogtreecommitdiff
path: root/src/or/routerkeys.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-13 20:22:34 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-30 08:37:22 -0500
commite2aeaeb76c2fd04a8b5934b7682823d77dc6f064 (patch)
tree3317493ff9a96506017bf4122cf2aaf55f57b120 /src/or/routerkeys.h
parent60769e710f1099168f7508fe6834e458ce435ad9 (diff)
downloadtor-e2aeaeb76c2fd04a8b5934b7682823d77dc6f064.tar.gz
tor-e2aeaeb76c2fd04a8b5934b7682823d77dc6f064.zip
Make a bunch of signature/digest-checking functions mockable
Diffstat (limited to 'src/or/routerkeys.h')
-rw-r--r--src/or/routerkeys.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerkeys.h b/src/or/routerkeys.h
index 98894cdc0b..d2027f4bbe 100644
--- a/src/or/routerkeys.h
+++ b/src/or/routerkeys.h
@@ -57,11 +57,11 @@ uint8_t *make_tap_onion_key_crosscert(const crypto_pk_t *onion_key,
const crypto_pk_t *rsa_id_key,
int *len_out);
-int check_tap_onion_key_crosscert(const uint8_t *crosscert,
+MOCK_DECL(int, check_tap_onion_key_crosscert,(const uint8_t *crosscert,
int crosscert_len,
const crypto_pk_t *onion_pkey,
const ed25519_public_key_t *master_id_pkey,
- const uint8_t *rsa_id_digest);
+ const uint8_t *rsa_id_digest));
int load_ed_keys(const or_options_t *options, time_t now);
int should_make_new_ed_keys(const or_options_t *options, const time_t now);