summaryrefslogtreecommitdiff
path: root/src/or/routerkeys.c
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.c
parent60769e710f1099168f7508fe6834e458ce435ad9 (diff)
downloadtor-e2aeaeb76c2fd04a8b5934b7682823d77dc6f064.tar.gz
tor-e2aeaeb76c2fd04a8b5934b7682823d77dc6f064.zip
Make a bunch of signature/digest-checking functions mockable
Diffstat (limited to 'src/or/routerkeys.c')
-rw-r--r--src/or/routerkeys.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c
index 51802b15e5..6cc75edfa3 100644
--- a/src/or/routerkeys.c
+++ b/src/or/routerkeys.c
@@ -1207,12 +1207,12 @@ make_tap_onion_key_crosscert(const crypto_pk_t *onion_key,
/** Check whether an RSA-TAP cross-certification is correct. Return 0 if it
* is, -1 if it isn't. */
-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)
+MOCK_IMPL(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))
{
uint8_t *cc = tor_malloc(crypto_pk_keysize(onion_pkey));
int cc_len =