diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-26 23:00:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-26 23:00:07 +0000 |
commit | ad07c62938e6b905db5ca6468bb2c5f211300e5c (patch) | |
tree | ba393231ddb00e2e8eb0fbbbf4f2df6a08891447 /src/common/tortls.h | |
parent | e34c201bb3678891c425f8db615759003ff77649 (diff) | |
download | tor-ad07c62938e6b905db5ca6468bb2c5f211300e5c.tar.gz tor-ad07c62938e6b905db5ca6468bb2c5f211300e5c.zip |
Add a macro to catch unhandled openssl errors.
svn:r1723
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index da22454f2e..c0099c9444 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -33,6 +33,10 @@ int tor_tls_get_pending_bytes(tor_tls *tls); unsigned long tor_tls_get_n_bytes_read(tor_tls *tls); unsigned long tor_tls_get_n_bytes_written(tor_tls *tls); +#define assert_no_tls_errors() _assert_no_tls_errors(__FILE__,__LINE__); + +void _assert_no_tls_errors(const char *fname, int line); + #endif /* |