[or-cvs] Add function to wrap SSL_pending

Nick Mathewson nickm at seul.org
Sat Sep 27 20:07:43 UTC 2003


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv6740

Modified Files:
	tortls.c tortls.h 
Log Message:
Add function to wrap SSL_pending

Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- tortls.c	26 Sep 2003 22:27:22 -0000	1.16
+++ tortls.c	27 Sep 2003 20:07:40 -0000	1.17
@@ -484,3 +484,9 @@
   return r;
 }
 
+int 
+tor_tls_get_pending_bytees(tor_tls *tls)
+{
+  assert(tls);
+  return SSL_pending(tls->ssl);
+}

Index: tortls.h
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- tortls.h	25 Sep 2003 05:17:10 -0000	1.6
+++ tortls.h	27 Sep 2003 20:07:40 -0000	1.7
@@ -26,5 +26,6 @@
 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



More information about the tor-commits mailing list