Module: sip-router
Branch: andrei/tcp_tls_changes
Commit: ce51fbb84e56921030b62d8617db2365ad934b51
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ce51fbb…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu May 20 16:00:29 2010 +0200
tcp: new tls hooks interface and async tls changes
- new tls hooks interface that better accommodates tls async use.
Changed read() (takes an extra flags parameter now), removed
blocking_write() and fix_read_con(), added do_send() and
fst_send() (both of them handle snd_flags now and might return a
command that should be sent to tcp_main).
- more tcp send functions (tcpconn_1st_send(),
tcpconn_send_unsafe()) and more send functions exported
(tls_int_send.h) for use from the tls module.
- split tcp_read() into tcp_read() and tcp_read_data() and
exported tcp_read_data() (tcp_read.h).
- support for repeating a tcp_read() if indicated
(RD_CONN_REPEAT_READ), needed for tls.
---
tcp_int_send.h | 50 +++++
tcp_main.c | 651 ++++++++++++++++++++++++++++++++------------------------
tcp_read.c | 144 ++++++++-----
tcp_read.h | 46 ++++
tls_hooks.h | 31 ++--
5 files changed, 579 insertions(+), 343 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=ce5…