From 361998d0f389b1a77035317b0f09587ca6ee3be2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 29 Dec 2006 03:42:46 +0000 Subject: 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 --- src/common/tortls.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/tortls.h') 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. */ -- cgit v1.2.3-54-g00ecf