aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-09-27 20:07:40 +0000
committerNick Mathewson <nickm@torproject.org>2003-09-27 20:07:40 +0000
commit798bb6ab3b089005fddfded0513edeb2da231354 (patch)
tree88d48b86ba65bf8f1f7393f3eb7bc53ac2737f06 /src/common
parent0d9e339d49f245d355435c0171b35a44ead90c33 (diff)
downloadtor-798bb6ab3b089005fddfded0513edeb2da231354.tar
tor-798bb6ab3b089005fddfded0513edeb2da231354.tar.gz
Add function to wrap SSL_pending
svn:r501
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tortls.c6
-rw-r--r--src/common/tortls.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 271c21790..6fb6a2eae 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -484,3 +484,9 @@ tor_tls_verify(tor_tls *tls)
return r;
}
+int
+tor_tls_get_pending_bytees(tor_tls *tls)
+{
+ assert(tls);
+ return SSL_pending(tls->ssl);
+}
diff --git a/src/common/tortls.h b/src/common/tortls.h
index 2c8749cea..3a517c25d 100644
--- a/src/common/tortls.h
+++ b/src/common/tortls.h
@@ -26,5 +26,6 @@ int tor_tls_read(tor_tls *tls, char *cp, int len);
int tor_tls_write(tor_tls *tls, char *cp, int n);
int tor_tls_handshake(tor_tls *tls);
int tor_tls_shutdown(tor_tls *tls);
+int tor_tls_get_pending_bytees(tor_tls *tls);
#endif