diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-12-29 03:42:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-12-29 03:42:46 +0000 |
commit | 361998d0f389b1a77035317b0f09587ca6ee3be2 (patch) | |
tree | 0c46afde3956b598a579cee351ffc49239f41c01 /src/common/tortls.h | |
parent | 7cfdac1bf6486671517b736b8188c5b3d0caa7d5 (diff) | |
download | tor-361998d0f389b1a77035317b0f09587ca6ee3be2.tar.gz tor-361998d0f389b1a77035317b0f09587ca6ee3be2.zip |
r11741@Kushana: nickm | 2006-12-28 22:41:29 -0500
Count TLS bytes accurately: previously, we counted only the number of bytes read or transmitted via tls, not the number of extra bytes used to do so. This has been a lonstanding wart. The fix "Works for me".
svn:r9207
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index dea072a338..8667ddf9b5 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -43,8 +43,8 @@ int tor_tls_shutdown(tor_tls_t *tls); int tor_tls_get_pending_bytes(tor_tls_t *tls); size_t tor_tls_get_forced_write_size(tor_tls_t *tls); -unsigned long tor_tls_get_n_bytes_read(tor_tls_t *tls); -unsigned long tor_tls_get_n_bytes_written(tor_tls_t *tls); +void tor_tls_get_n_raw_bytes(tor_tls_t *tls, + size_t *n_read, size_t *n_written); /* Log and abort if there are unhandled TLS errors in OpenSSL's error stack. */ |