mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 06:35:28 +01:00
Add function to wrap SSL_pending
svn:r501
This commit is contained in:
parent
0d9e339d49
commit
798bb6ab3b
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue