diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-06-26 11:18:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-07-02 10:14:48 -0400 |
commit | 7b5f58a1c93f99ef3eaa840b4443ca0a4120a512 (patch) | |
tree | 91c7fbdc389bb5972093a96d62d80bcfb5fc55d5 /src/lib/tls/tortls.h | |
parent | e429ceb2667787750af070929d0e64cbc7a6dda4 (diff) | |
download | tor-7b5f58a1c93f99ef3eaa840b4443ca0a4120a512.tar.gz tor-7b5f58a1c93f99ef3eaa840b4443ca0a4120a512.zip |
Carry TLS error strings forward to controller when reporting them.
Now instead of saying "DONE, DONE" or "MISC, MISC" or "TLS_ERROR,
TLS_ERROR", we can finally give a nice sensible "TLS_ERROR,
wrong version number" which should help debug a great deal.
Closes ticket 32622.
Diffstat (limited to 'src/lib/tls/tortls.h')
-rw-r--r-- | src/lib/tls/tortls.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/tls/tortls.h b/src/lib/tls/tortls.h index e8dbbf5279..517cdc17dd 100644 --- a/src/lib/tls/tortls.h +++ b/src/lib/tls/tortls.h @@ -81,6 +81,7 @@ void tor_tls_free_all(void); void tor_tls_init(void); void tls_log_errors(tor_tls_t *tls, int severity, int domain, const char *doing); +const char *tor_tls_get_last_error_msg(const tor_tls_t *tls); int tor_tls_context_init(unsigned flags, crypto_pk_t *client_identity, crypto_pk_t *server_identity, |