aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_digest.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-23 14:03:00 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-04 14:52:35 -0400
commit7163389b550a36fa017f700713405fc3c89dc234 (patch)
tree50bafc5964a7a9eac229d3b47635f1bb1050689f /src/lib/crypt_ops/crypto_digest.c
parent02086a216f15fd8c45e603a8d9bab482f60753f4 (diff)
downloadtor-7163389b550a36fa017f700713405fc3c89dc234.tar.gz
tor-7163389b550a36fa017f700713405fc3c89dc234.zip
Several unit tests to improve test coverage of x509*.c
Diffstat (limited to 'src/lib/crypt_ops/crypto_digest.c')
-rw-r--r--src/lib/crypt_ops/crypto_digest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypt_ops/crypto_digest.c b/src/lib/crypt_ops/crypto_digest.c
index 2bc5f08342..77cf18dca9 100644
--- a/src/lib/crypt_ops/crypto_digest.c
+++ b/src/lib/crypt_ops/crypto_digest.c
@@ -116,8 +116,8 @@ library_supports_digest(digest_algorithm_t alg)
* <b>m</b>. Write the DIGEST_LEN byte result into <b>digest</b>.
* Return 0 on success, -1 on failure.
*/
-int
-crypto_digest(char *digest, const char *m, size_t len)
+MOCK_IMPL(int,
+crypto_digest,(char *digest, const char *m, size_t len))
{
tor_assert(m);
tor_assert(digest);