Module: sip-router
Branch: andrei/tcp_tls_changes
Commit: e316312628e61cbded9b991d21385b4e8180b538
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e316312…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Jul 5 14:44:14 2010 +0200
tcp: support for tls partial encoding
The tls_encode() callback supports now partial encoding. It can
encode only part of the input buffer (e.g. tls partial write
enabled and not enough space in the internal buffers for all the
tls records) and ask to be called back later with the remaining
un-encoded part.
The send flags are also passed to it, so that it can modify them
if needed (e.g. reset SND_F_CON_CLOSE on partial tls write or when
reading some data is needed before continuing the tls write).
---
tcp_main.c | 230 +++++++++++++++++++++++++++++++++++++++++++++++------------
tls_hooks.h | 19 ++++--
2 files changed, 199 insertions(+), 50 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=e31…