diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-03-26 15:34:54 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-03-26 15:34:54 +0200 |
commit | d11976b8bd4bded2939ff973d7b2beb36c201bf0 (patch) | |
tree | a0fd4b5df11eba889d7fa393b2b32aea57984331 /src/feature/nodelist | |
parent | 2790ee3685ac2d906cab99d1eac8f7a627b00d90 (diff) | |
parent | 6c652eae0a95cae095f5adad9cc51e1f1a183245 (diff) | |
download | tor-d11976b8bd4bded2939ff973d7b2beb36c201bf0.tar.gz tor-d11976b8bd4bded2939ff973d7b2beb36c201bf0.zip |
Merge branch 'tor-github/pr/709'
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r-- | src/feature/nodelist/torcert.c | 4 | ||||
-rw-r--r-- | src/feature/nodelist/torcert.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/nodelist/torcert.c b/src/feature/nodelist/torcert.c index b0197e9f13..56f1a8ac9f 100644 --- a/src/feature/nodelist/torcert.c +++ b/src/feature/nodelist/torcert.c @@ -290,8 +290,8 @@ tor_cert_describe_signature_status(const tor_cert_t *cert) } /** Return a new copy of <b>cert</b> */ -tor_cert_t * -tor_cert_dup(const tor_cert_t *cert) +MOCK_IMPL(tor_cert_t *, +tor_cert_dup,(const tor_cert_t *cert)) { tor_cert_t *newcert = tor_memdup(cert, sizeof(tor_cert_t)); if (cert->encoded) diff --git a/src/feature/nodelist/torcert.h b/src/feature/nodelist/torcert.h index 492275b514..03d5bdca93 100644 --- a/src/feature/nodelist/torcert.h +++ b/src/feature/nodelist/torcert.h @@ -71,7 +71,7 @@ int tor_cert_checksig(tor_cert_t *cert, const ed25519_public_key_t *pubkey, time_t now); const char *tor_cert_describe_signature_status(const tor_cert_t *cert); -tor_cert_t *tor_cert_dup(const tor_cert_t *cert); +MOCK_DECL(tor_cert_t *,tor_cert_dup,(const tor_cert_t *cert)); int tor_cert_eq(const tor_cert_t *cert1, const tor_cert_t *cert2); int tor_cert_opt_eq(const tor_cert_t *cert1, const tor_cert_t *cert2); |