summaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-18 14:03:49 -0400
committerNick Mathewson <nickm@torproject.org>2015-05-07 15:29:16 -0400
commit79e85313aa611b599f19fea61c38ff3928e1fd59 (patch)
treed6c25dae4999d42a33810134f49d7d650a25b2dc /src/common/tortls.c
parent3668a4126e0c2502a77c2ba5d7885add489a964a (diff)
downloadtor-79e85313aa611b599f19fea61c38ff3928e1fd59.tar.gz
tor-79e85313aa611b599f19fea61c38ff3928e1fd59.zip
Write the outlines of a WritingTests.txt document
Also, add some sample tests to be examples.
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index ca629135a6..43fa7f884d 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -2068,8 +2068,8 @@ tor_tls_free(tor_tls_t *tls)
* number of characters read. On failure, returns TOR_TLS_ERROR,
* TOR_TLS_CLOSE, TOR_TLS_WANTREAD, or TOR_TLS_WANTWRITE.
*/
-int
-tor_tls_read(tor_tls_t *tls, char *cp, size_t len)
+MOCK_IMPL(int,
+tor_tls_read,(tor_tls_t *tls, char *cp, size_t len))
{
int r, err;
tor_assert(tls);