summaryrefslogtreecommitdiff
path: root/src/lib/tls/tortls.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-12 11:02:59 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-12 11:12:05 -0400
commitae5692994fc31cc5fa25fb5681e59e326e6c5dbe (patch)
treee83edf9652c3aea60ef2f7541eebb4c6cb7534ba /src/lib/tls/tortls.h
parentbfc847255afb093b89dd82687d796e3e3c7fcb89 (diff)
downloadtor-ae5692994fc31cc5fa25fb5681e59e326e6c5dbe.tar.gz
tor-ae5692994fc31cc5fa25fb5681e59e326e6c5dbe.zip
Add a tor_tls_release_socket() function.
This function tells the underlying TLS object that it shouldn't close the fd on exit. Mostly, we hope not to have to use it, since the NSS implementation is kludgey, but it should allow us to fix
Diffstat (limited to 'src/lib/tls/tortls.h')
-rw-r--r--src/lib/tls/tortls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/tls/tortls.h b/src/lib/tls/tortls.h
index 4591927081..3f1098bbac 100644
--- a/src/lib/tls/tortls.h
+++ b/src/lib/tls/tortls.h
@@ -94,6 +94,7 @@ void tor_tls_set_renegotiate_callback(tor_tls_t *tls,
void (*cb)(tor_tls_t *, void *arg),
void *arg);
int tor_tls_is_server(tor_tls_t *tls);
+void tor_tls_release_socket(tor_tls_t *tls);
void tor_tls_free_(tor_tls_t *tls);
#define tor_tls_free(tls) FREE_AND_NULL(tor_tls_t, tor_tls_free_, (tls))
int tor_tls_peer_has_cert(tor_tls_t *tls);