aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_tls
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-08-31 08:57:26 +0200
committerMartin Willi <martin@revosec.ch>2010-08-31 15:54:37 +0200
commitecd98efa9d5cb1c6f3e14ee5c8a97d405d3a1ef9 (patch)
tree87aae03ce2a255489bfeda6ce463608efa9e847b /src/libcharon/plugins/eap_tls
parentf13a03add0553d6d7c9d989d0de4ee68fa35acb4 (diff)
downloadstrongswan-ecd98efa9d5cb1c6f3e14ee5c8a97d405d3a1ef9.tar.bz2
strongswan-ecd98efa9d5cb1c6f3e14ee5c8a97d405d3a1ef9.tar.xz
Support output fragmentation of TLS records
Diffstat (limited to 'src/libcharon/plugins/eap_tls')
-rw-r--r--src/libcharon/plugins/eap_tls/eap_tls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcharon/plugins/eap_tls/eap_tls.c b/src/libcharon/plugins/eap_tls/eap_tls.c
index 8b5d4cb19..155038056 100644
--- a/src/libcharon/plugins/eap_tls/eap_tls.c
+++ b/src/libcharon/plugins/eap_tls/eap_tls.c
@@ -251,7 +251,7 @@ static status_t process_buf(private_eap_tls_t *this)
{
status_t status;
- status = this->tls->process(this->tls, this->input);
+ status = this->tls->process(this->tls, this->input.ptr, this->input.len);
if (status != NEED_MORE)
{
return status;
@@ -260,7 +260,8 @@ static status_t process_buf(private_eap_tls_t *this)
this->inpos = 0;
chunk_free(&this->output);
- return this->tls->build(this->tls, &this->output);
+ this->output = chunk_alloc(EAP_TLS_FRAGMENT_LEN);
+ return this->tls->build(this->tls, this->output.ptr, &this->output.len, NULL);
}
METHOD(eap_method_t, process, status_t,