aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_tls
diff options
context:
space:
mode:
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,