summaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-03 11:48:08 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-03 13:09:08 -0400
commit5acddbbbf74199b46eef75cbbeb11ea6aad9326f (patch)
tree87615a56e6fe2f56871add6092c92fa21ccb3d53 /src/test/fuzz
parent77d9dd39c36a4da609c878840be35c515104fb9a (diff)
downloadtor-5acddbbbf74199b46eef75cbbeb11ea6aad9326f.tar.gz
tor-5acddbbbf74199b46eef75cbbeb11ea6aad9326f.zip
bug#22143/prop#140: identify input diffs by their digest-as-signed
See may 3 changes to prop140 for more background.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/fuzz_diff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/fuzz/fuzz_diff.c b/src/test/fuzz/fuzz_diff.c
index c241f63dc4..642380b512 100644
--- a/src/test/fuzz/fuzz_diff.c
+++ b/src/test/fuzz/fuzz_diff.c
@@ -21,6 +21,7 @@ int
fuzz_init(void)
{
MOCK(consensus_compute_digest, mock_consensus_compute_digest_);
+ MOCK(consensus_compute_digest_as_signed, mock_consensus_compute_digest_);
return 0;
}
@@ -28,6 +29,7 @@ int
fuzz_cleanup(void)
{
UNMOCK(consensus_compute_digest);
+ UNMOCK(consensus_compute_digest_as_signed);
return 0;
}