From c860282fc0ca068b1e5c210130979823ee799636 Mon Sep 17 00:00:00 2001 From: Suphanat Chunhapanya Date: Sun, 13 Aug 2017 16:15:40 +0700 Subject: Mock rsa_ed25519_crosscert_check This commit just mocks the rsa_ed25519_crosscert_check to be used later in the fuzzer. --- src/or/torcert.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/or/torcert.c') diff --git a/src/or/torcert.c b/src/or/torcert.c index 658e620ca5..9ded3d585d 100644 --- a/src/or/torcert.c +++ b/src/or/torcert.c @@ -356,12 +356,12 @@ tor_make_rsa_ed25519_crosscert(const ed25519_public_key_t *ed_key, * * Return 0 on success, negative on failure. */ -int -rsa_ed25519_crosscert_check(const uint8_t *crosscert, - const size_t crosscert_len, - const crypto_pk_t *rsa_id_key, - const ed25519_public_key_t *master_key, - const time_t reject_if_expired_before) +MOCK_IMPL(int, +rsa_ed25519_crosscert_check, (const uint8_t *crosscert, + const size_t crosscert_len, + const crypto_pk_t *rsa_id_key, + const ed25519_public_key_t *master_key, + const time_t reject_if_expired_before)) { rsa_ed_crosscert_t *cc = NULL; int rv; -- cgit v1.2.3-54-g00ecf